我无法在销毁后重新创建ckeditor,我发现很少有分组插件导致问题 - justifygroup,indentgroup,listgroup,formatgroup,undogroup。
如果我删除这些插件,我可以在销毁后重新创建编辑器,但我想使用这些插件。有什么想法吗?
代码段:
var editor = CKEDITOR.replace(editorID, {
toolbarGroups: [
{name: 'clipboard', groups: ['undo']},
{name: 'basicstyles', groups: ['basicstyles']},
{name: 'links', groups: ['links']},
{name: 'paragraph', groups: ['list', 'indent', 'align']},
{name: 'insert', groups: ['insert']},
{name: 'colors', groups: ['colors']},
{name: 'document', groups: ['mode', 'document', 'doctools']},
{name: 'styles', groups: ['styles']},
{name: 'cleanup', groups: ['cleanup']}
],
extraPlugins: 'scayt,image2,font,removeformat,youtube,confighelper,contextmenu,pastefromword,pastetext,tabletools,stylescombo,justify,colorbutton,colordialog,sourcearea,justifygroup,indentgroup,listgroup,formatgroup,undogroup,pastegroup',
removePlugins: 'elementspath,resize,scayt',
filebrowserImageUploadUrl: '/api/v1.0/uploadfile/' + projectID
});