根据文档,插件和小部件将存储在 /ckeditor_root/plugins/plugindir
当我计划为内容管理系统开发一个小部件时,我更愿意将插件存储在 cms 的资产中。
ckeditor是否允许设计?
干杯,
奥利弗
根据文档,插件和小部件将存储在 /ckeditor_root/plugins/plugindir
当我计划为内容管理系统开发一个小部件时,我更愿意将插件存储在 cms 的资产中。
ckeditor是否允许设计?
干杯,
奥利弗
要从本地文件夹启用额外的插件,CKEDITOR.plugins.addExternal()
必须首先调用,以便 CKEditor 知道从哪里加载插件。
// Enable local "abbr" plugin from the "/myplugins/abbr/" folder.
CKEDITOR.plugins.addExternal( 'abbr', '/myplugins/abbr/', 'plugin.js' );
// config.extraPlugins needs to be set, too.
CKEDITOR.replace( 'editor1', {
extraPlugins: 'abbr'
} );
该CKEDITOR.plugins.addExternal()
方法接受三个参数: