How to determine if CKEditor is loaded?

前端 未结 7 1501
野性不改
野性不改 2021-02-18 16:16

How do I find out if CKEditor is loaded? I\'ve looked through the API docs, but could only find the loaded event. I want to check if CKEditor is loaded, because if I load it a s

7条回答
  •  [愿得一人]
    2021-02-18 16:33

    var waitCKEDITOR = setInterval(function() {
        if (window.CKEDITOR) {
           clearInterval(waitCKEDITOR);
           //CKEDITOR.replace(...);
        }
    }, 100/*milli*/);
    

提交回复
热议问题