新实例上的CKEditor命令无法正常工作(CKEditor command on new instance not working)
我有一个问题,即execCommand()在创建编辑器后不能立即工作
var editor; function1() { editor = CKEDITOR.appendTo('data', config); editor.execCommand('maximize'); // does not work } function2() { editor.execCommand('maximize'); // works }如果我在function2之后调用function2它可以工作。 我想念或不理解的是什么?
I have the problem that execCommand() does not work immediately after creating the editor
var editor; function1() { editor = CKEDITOR.appendTo('data', config); editor.execCommand('maximize'); // does not work } function2() { editor.execCommand('maximize'); // works }If I call function2 after function1 it works. What do I miss or not understand?
更多推荐
发布评论