2

我有一个页面,其中有多个带有“.ckeditor”类的编辑器。

我正在尝试更新模糊的值,但模糊不会触发。

$(".ckeditor").on("blur", function() {
            console.log("blur");
            for (var i in CKEDITOR.instances) {
                console.log(i);
                CKEDITOR.instances[i].updateElement();// to update the textarea
            }
        });

任何人都知道他们是否完全改变了 ckeditor 4 中的行为?

4

1 回答 1

9

尝试以这样的方式添加事件

CKEDITOR.instances.editor1.on('blur', function(e) {
    console.log('onblur fired');
});
于 2012-12-08T09:35:36.100 回答