2
我想获取ckeditor中keydown事件的keyCode。我的代码看起来有点像这样CK编辑器中的关键代码
editor.document.on('keydown', function(event) {
var keycode= event.data.keyCode & ~(CKEDITOR.SHIFT | CKEDITOR.CTRL |CKEDITOR.ALT);
alert('Key:'+keycode);
});
但它总是提醒0.不知道为什么会这样。
此外,我想用event.preventDefault()从jQuery的。但我无法弄清楚如何将我的plugin.js file.Any建议
你是否遇到类似这样的类似问题:http://stackoverflow.com/questions/24808029/ckeditor-key-event-not-updating-text-properly –