【问题标题】:CKEditor Can't install emoji pluginCKEditor 无法安装表情符号插件
【发布时间】:2021-05-27 14:01:12
【问题描述】:

我无法使用 CKEditor 4 正确安装表情符号插件。 我也遵循文档并安装依赖项。 表情符号似乎在某处,但未显示在工具栏中。

请注意,我使用 django-ckeditor 但效果相同。 我的浏览器的日志控制台中没有错误。

这是我的配置:

CKEDITOR_CONFIGS = {
    'default': {
        # 'toolbar': 'full',
        'codeSnippet_theme': 'monokai_sublime',
        'toolbar': 'Custom',
        'toolbar_Custom': [
            ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', 'RemoveFormat', '-', 'Undo', 'Redo'],
            ['Find', 'Replace', '-', 'SelectAll'],
            ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript'],
            ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', '-',
                'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl',
                       'Language'],
            ['Link', 'Unlink'],
            ['Image', 'Table', 'HorizontalRule', 'CodeSnippet', 'Code'],
            ['emoji', 'SpecialChar', 'Youtube'],
            ['Styles', 'Format', 'Font', 'FontSize'],
            ['TextColor', 'BGColor'],
            ['Maximize', 'ShowBlocks'],
        ],
        'extraPlugins': 'codesnippet,youtube,codeTag,emoji',
        'removePlugins': 'flash,anchor,iframe,forms,div,exportpdf,templates',
        'removeButtons': 'Anchor',
        'width': '100%',
        'tabSpaces': 4,
    }
}

请注意,youtube、codeTag 和 coden-p 可以完美运行,我对 emoji 也这样做,但它不起作用。

拜托,有人可以帮助我吗?

【问题讨论】:

    标签: python django ckeditor emoji


    【解决方案1】:

    天啊,我解决了我的问题,只是在配置中用'EmojiPanel' 替换了'emoji'。 它没有在任何地方提及,我在表情符号插件的plugin.js 中找到了它。 这太奇怪了,没有网站文档提到它......

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-01-19
      • 1970-01-01
      • 2019-04-15
      • 1970-01-01
      • 1970-01-01
      • 2018-12-18
      • 2018-08-03
      相关资源
      最近更新 更多