I have CKeditor 4 working fine; but I needed to add the 'source' button so we can edit in HTML. This is not an inline version, it's in the CMS for editing page content.
I pasted the plugins into the plugins directory for Sourcedialog, Dialog, DialogUI and also Sourcearea.
My config.js now reads:
CKEDITOR.editorConfig = function( config ) {
config.extraPlugins = 'savebtn';//savebtn is the plugin's name
config.saveSubmitURL = 'ajax-wysi-next.cfm';//link to serverside
script to handle the post
config.extraPlugins = 'sourcedialog';
config.extraPlugins = 'sourcearea';
config.extraPlugins = 'dialog';
config.extraPlugins = 'dialogui';
};
I am not seeing the Source button appear, even after clearing cache.
Do I need to do anything else?
答案 0 :(得分:0)
好,因此此问题已得到解决:
安装SourceDialog插件及其依赖的插件(Dialog,DialogUI)。
更改config.js以引用它们:
config.extraPlugins = 'sourcedialog';
config.extraPlugins = 'dialog';
config.extraPlugins = 'dialogui';
然后,转到已安装CKeditor的页面,并将其更改为:
extraPlugins: 'savebtn, sourcedialog',
重要的是,您将插件放在同一字段中,并用逗号分隔,并且不要对每个插件执行“ extraPlugins”行。
现在,“源”按钮和“保存”按钮都可以正常工作。 希望这对其他人有帮助!