2

我正在尝试在 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实例添加到变量,但没有任何效果。

有人能帮我吗?

4

1 回答 1

1

试试这个:

CKEDITOR.instances['note-content'].on("blur", function() {
    alert('ready');  
});
于 2018-04-20T09:08:23.253 回答