小编MOs*_*_53的帖子

如何使完整的CKEditor重新初始化?

请帮帮我 - 我需要对CKeditor进行全面的重新初始化.我不想重新初始化CKeditor的实例,但我想完全重新加载它.有没有办法实现它?我试着做下一个:

delete window.CKEDITOR;
Run Code Online (Sandbox Code Playgroud)

然后:

    //clear for old sources
    $('script[src*="/includes/contentEditor/ckeditor/"]').each(function() {
       $(this).remove();
    });
    $('link[href*="/includes/contentEditor/ckeditor/"]').each(function() {
       $(this).remove();
    });

    //load CKeditor again
    contentEditor.loadjscssfile('/includes/contentEditor/ckeditor/ckeditor.js', 'js');
    contentEditor.loadjscssfile('/includes/contentEditor/ckeditor/adapters/jquery.js', 'js');
Run Code Online (Sandbox Code Playgroud)

我的方法加载编辑器,但重新加载后一些插件不起作用.谢谢你的帮助!

ckeditor

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

ckeditor ×1