正在尝试让font addon与django cms文本编辑器一起工作。我已经在.../djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins
和.../djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/plugins
中添加了addon文件夹。
下面是我添加到settings.py中的内容
#----------------------------------------------------------
# Text Editor
#----------------------------------------------------------
CKEDITOR_CONFIGS = {
'toolbar' : 'CMS',
'toolbar_CMS': [
['Undo', 'Redo'],
['cmsplugins', '-', 'ShowBlocks'],
['font']
],
'extraPlugins': 'font',
}
在我的cms页面中编辑任何文本插件时,该插件不会显示。我遗漏了什么或做错了什么?
发布于 2016-08-01 20:52:27
这是一个小问题,所以我想你现在已经解决了这个问题。对于其他来这里寻找信息的人来说,toolbar_CMS中的“字体”需要大写,以便正确的代码看起来像这样
#----------------------------------------------------------
# Text Editor
#----------------------------------------------------------
CKEDITOR_CONFIGS = {
'toolbar' : 'CMS',
'toolbar_CMS': [
['Undo', 'Redo'],
['cmsplugins', '-', 'ShowBlocks'],
['Font']
],
'extraPlugins': 'font',
}
https://stackoverflow.com/questions/32335383
复制