如何使CKEditor完全重新初始化?
|
请帮助我-我需要对CKeditor进行完全重新初始化。我不想重新初始化CKeditor的实例,但是我想完全重新加载它。有什么办法可以实现吗?
我试图做下一个:
delete window.CKEDITOR;
接着:
//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\');
我的方法加载了编辑器,但某些插件在重新加载后不起作用。谢谢你的帮助!
没有找到相关结果
已邀请:
5 个回复
矾醒忻
然后,我重新创建textarea,在50ms超时后,我再次使用textarea调用构造函数,插件重新加载正常。我们有一些非常复杂的Flash /图像编辑插件,所以您的插件可能存在问题?
荒劫娇噬
仿普
烷刨画颠离
磐去裸猜饲
它并不完美,但可以。 希望这可以帮助。