【问题标题】:Vue - Ckeditor with Multiple extraPluginsVue - 具有多个额外插件的 Ckeditor
【发布时间】:2018-03-12 07:16:24
【问题描述】:

我在我的网站上与 Laravel 一起使用 vue-ckeditor2。我正在尝试弄清楚如何使用多个额外插件。

这样做可行,但最终只有一个额外的插件 - 嵌入:

                'BulletedList',
                'Image',
                'Source',
                'Format',
                'Link',
                'Unlink',
                'Embed',
            ]
        ],
        extraPlugins: 'embed',
        toolbarLocation: 'bottom',
    }
}

这也有效,但我最终只有一个 - 自动增长:

                'Format',
                'Link',
                'Unlink',
            ]
        ],
        extraPlugins: 'autogrow',
        toolbarLocation: 'bottom',
    }
}

但是,以我在网上找到的一种方式将它们组合起来是行不通的,实际上会使 textarea 一起消失:

                'Unlink',
                'Embed',
            ]
        ],
        extraPlugins: 'autogrow, embed',
        toolbarLocation: 'bottom',
    }
}

【问题讨论】:

    标签: laravel vue.js ckeditor embed autogrow


    【解决方案1】:

    请尝试删除逗号后的空格,因此您的示例应如下所示:

    extraPlugins: 'autogrow,embed',
    

    假设 Vue2-CKEditor 遵循 CKEditor 关于额外插件的约定,请参阅here

    【讨论】:

      猜你喜欢
      • 2012-09-20
      • 2017-03-05
      • 1970-01-01
      • 2017-01-31
      • 2017-02-11
      • 1970-01-01
      • 1970-01-01
      • 2013-11-14
      • 1970-01-01
      相关资源
      最近更新 更多