【问题标题】:Django cms text editor (CKEditor) addonsDjango cms 文本编辑器 (CKEditor) 插件
【发布时间】:2015-11-26 21:54:21
【问题描述】:

试图让font addon 与 django cms 文本编辑器一起工作。我已将插件文件夹添加到.../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 页面中编辑任何文本插件时,该插件不显示。我错过了什么或做错了什么?

【问题讨论】:

    标签: django django-cms djangocms-text-ckeditor


    【解决方案1】:

    这是一个小问题,所以我想你现在已经解决了。对于来这里寻找信息的其他人,toolbar_CMS 中的“字体”需要大写,以便正确的代码看起来像

    #----------------------------------------------------------
    #                   Text Editor
    #----------------------------------------------------------
    CKEDITOR_CONFIGS = {
        'toolbar' : 'CMS',
        'toolbar_CMS': [
            ['Undo', 'Redo'],
            ['cmsplugins', '-', 'ShowBlocks'],
            ['Font']
        ],
        'extraPlugins': 'font',
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-01-04
      • 1970-01-01
      • 2022-11-09
      • 2013-02-13
      • 2023-03-08
      • 1970-01-01
      • 2023-02-10
      相关资源
      最近更新 更多