html 在CkEditor Initilize之前和之后运行代码

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 在CkEditor Initilize之前和之后运行代码相关的知识,希望对你有一定的参考价值。

/* 
 * Will only work if called before 'replace'
 * because after 'replace' the instance of the editor 
 * would have already been created and this won't run
*/
CKEDITOR.on("instanceCreated", function(event) {
  alert('Editor instance created');  
});

CKEDITOR.replace( 'editor');

CKEDITOR.on("instanceReady", function(event) {
  alert('Editor instance ready');  
});
<textarea name="editor"></textarea>

以上是关于html 在CkEditor Initilize之前和之后运行代码的主要内容,如果未能解决你的问题,请参考以下文章