Hi,
I'm trying to get an onchange event working in ckeditor 4.1. The plugin is no longer supported because an official version is coming, but that official version is 5 weeks out, so I'm stuck modifying the plugin to work.
Unforunately, it seems as though my editor is firing *no* key events. Key, keydown and keyup all do not work.
Here's my code:
editor.on('contentDom', function( event ) { editor.document.on('key', function(event) { console.log('my key'); }); editor.document.on('keyup', function(event) { console.log('my keyup'); }); editor.document.on('keydown', function(event) { console.log('my keydown'); }); editor.on('key', function(event) { console.log('raw key'); }); editor.on('keyup', function(event) { console.log('raw keyup'); }); editor.on('keydown', function(event) { console.log('raw keydown'); }); editor.document.on('mouseup', function(event) { console.log('mouseup'); }); });
The mouseup event fires fine (console logs "mouseup"), but no other events are fired when I type.
So my question is... how do I get key events working?
Thanks :)
Brendan
Few things:
Few things:
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+