【发布时间】:2020-09-20 00:02:08
【问题描述】:
我正在使用 CKEditor 并有一个 initEditor 函数,它可以引导编辑器实例的所有事件处理函数,如下所示:
顺便说一句,我正在使用 CoffeeScript
editor.on 'change', => ...
editor.on 'blur', => ...
editor.on 'key', => ...
很快我发现keyevent 实际上是keydown,我想知道有一个keyup 事件API,因为这在我的代码中似乎不起作用:
editor.on 'keyup', => ...
我得到一个错误:
TypeError: editor.onKeyup 不是函数
在:
editor.onKeyup((e) => {...})
【问题讨论】:
标签: javascript coffeescript ckeditor dom-events fckeditor