尝试让font addon使用django cms文本编辑器。我已将addon文件夹添加到.../djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor_plugins
和.../djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/plugins
。
以下是我添加到settings.py
的内容#----------------------------------------------------------
# Text Editor
#----------------------------------------------------------
CKEDITOR_CONFIGS = {
'toolbar' : 'CMS',
'toolbar_CMS': [
['Undo', 'Redo'],
['cmsplugins', '-', 'ShowBlocks'],
['font']
],
'extraPlugins': 'font',
}
在编辑我的cms页面中的任何文本插件时,插件无法显示。我错过了什么或做错了什么?
答案 0 :(得分:1)
这是一个小问题所以我想你现在已经解决了这个问题。对于来这里寻找信息的其他人来说,toolbar_CMS中的'font'需要大写,所以正确的代码看起来像
#----------------------------------------------------------
# Text Editor
#----------------------------------------------------------
CKEDITOR_CONFIGS = {
'toolbar' : 'CMS',
'toolbar_CMS': [
['Undo', 'Redo'],
['cmsplugins', '-', 'ShowBlocks'],
['Font']
],
'extraPlugins': 'font',
}