![](/img/trans.png)
[英]How to add predefined and custom ckeditor plugins to ng2-ckeditor
[英]How do I add custom plugins to ckeditor4-vue?
我有一些為基礎 ckeditor 4 制作的自定義插件,我想將它們添加到我正在處理的新項目的 ckeditor4-vue 中。 我應該如何將它們與 vue ckeditor 集成?
我已經從我的原始工作中獲得了一個配置文件,調用插件以及它們如何集成到工具欄中,如果有幫助的話。
提前致謝!
我剛剛在配置中添加了他們的名字
config: {
toolbarGroups: this.toolbarGroups,
height: this.height,
language: this.language,
extraPlugins: 'fakeobjects,iframe,sourcedialog',
removePlugins: 'sourcearea'
}
這是我的解決方案。 首先你必須下載 ckeitor 的源文件。 並指定“editor-url”,您可以在其中指定本地 ckeditor 源的路徑。 之后,您可以像在簡單的 ckeditor4 中一樣安裝任何插件。 這是指南https://ckeditor.com/docs/ckeditor4/latest/guide/dev_plugins.html
<ckeditor
:editor-url="/js/ckeditor/"
v-model="text"
:config="{
...
extraPlugins: 'iframe',
}"
></ckeditor>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.