我试图在CKEditor中设置焦点,但没有任何效果。
我正在使用cdn的标准4.8.0版本。
问题出在哪里?我粘贴下面的代码:
CKEDITOR.instances['note-content'].on("focusout", function(){
alert('ready');
});
note-content
是我的div #id
。
CKEDITOR.instances['note-content'].getData();
CKEDITOR.instances['note-content'].setData(test);
完美运作
还尝试将cke
实例添加到变量中,但没有任何作用。
有人能帮助我吗?
答案 0 :(得分:0)
试试这个:
CKEDITOR.instances['note-content'].on("blur", function() {
alert('ready');
});