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 –