新实例上的CKEditor命令无法正常工作(CKEditor command on new instance not working)

编程入门 行业动态 更新时间:2024-10-24 22:30:55
新实例上的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?

更多推荐

本文发布于:2023-07-31 18:57:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1347230.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法正常   实例   命令   工作   CKEditor

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!