首页 > 解决方案 > fosckeditor bundle - 无法配置额外的插件

问题描述

我下载了friendsofsymfony/ckeditor-bundle,添加了 extraPlugins 并且他们的配置没有被应用。我的配置:

# config/packages/fos_ck_editor.yaml
fos_ck_editor:
  default_config: my_config
  configs:
    my_config:
      toolbar: [ ['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList', 'Outdent', 'Indent'] ]
      extraPlugins: 'wordcount,notification'
      wordcount:
        showWordCount: false    # disable this
        showCharCount: true     # enable this
  plugins:
    wordcount:
      path: '/bundles/fosckeditor/plugins/wordcount/'
      filename: 'plugin.js'
    notification:
      path: '/bundles/fosckeditor/plugins/notification/'
      filename: 'plugin.js'

在此处输入图像描述

标签: symfonybundlesymfony4

解决方案


推荐阅读