0

我使用来自 egeloen (ivoryckeditor) 的 ckeditor-bundle 在我的 Symfony 3.3.10 项目中成功安装并集成了 CKEditor (4.7.3)。我现在正试图让“保存”插件工作。

我将插件文件夹复制到我的网络文件夹中。这是我在 config.yml 中的测试配置

ivory_ck_editor:
    inline: true
    autoload: false
    async: false
    configs:
        ckeditor_config_1:
            toolbar: [ [ "Save", "Cut", "Copy" ] ]
            extraPlugins: "save"
    plugins:
        save:
            path:       "/bundles/ivoryckeditor/plugins/save/"
            filename:   "plugin.js"

这就是我创建 ckeditor 表单以传递给 twig 进行渲染的方式:

$ckeditForm = $this->get('form.factory')->createNamedBuilder('ckedit_form', CKEditorType::class, $content, array(
    'label' => false,
    'config' => array(
        'config_name' => 'ckeditor_config_1',
        'inline' => true,
    ),
))->getForm();

不幸的是,“保存”按钮没有出现。非常欢迎有关按钮未显示原因的任何想法。

4

1 回答 1

0

好的 - 保存插件不能在内联模式下工作。可以在某处记录 - 找不到任何提示......

于 2017-11-28T19:00:44.063 回答