如何确定CKEditor是否加载? [英] How to determine if CKEditor is loaded?
本文介绍了如何确定CKEditor是否加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何知道CKEditor是否已加载?我查看了API文档,但只能找到加载的事件。我想检查CKEditor是否加载,因为如果我第二次加载它,我的textareas消失。
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 second time, my textareas disapears.
推荐答案
c $ c>加载事件对我没有工作。 instanceReady
工作:
The loaded
event didn't work for me. instanceReady
worked:
CKEDitor_loaded = false;
CKEDITOR.on('instanceReady', function(){ CKEditor_loaded = true; });
这篇关于如何确定CKEditor是否加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文