How to determine if CKEditor is loaded?

前端 未结 7 1464
野性不改
野性不改 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-18 16:43

    The loaded event didn't work for me. instanceReady worked:

    CKEDitor_loaded = false;
    
    CKEDITOR.on('instanceReady', function(){ CKEditor_loaded = true; }); 
    

提交回复
热议问题