(function()
{
CKEDITOR.plugins.add( 'plug',
{
init : function( editor )
{
editor.on( 'contentDom', my_func, this); // Works but not useful for me
editor.on( 'keyup', my_func, this); // Doesn't work
editor.on( 'keydown', my_func, this); // Doesn't work
editor.on( 'keypress', my_func, this); // Doesn't work
editor.on( 'click', my_func, this); // Doesn't work
}
});
function my_func(domObj)
{
alert(domObj.editor.getData().length);
}
})();
Thu, 12/10/2009 - 10:48
#1

Re: Available events list
Would be better if I could listen to an event like 'after content modification'. This would include the cut/paste actions, text added by keyboard, and so on.
Any help would be greatly appreciated.
Re: Available events list
(function() { CKEDITOR.plugins.add( 'plug', { init : function( editor ) { editor.on( 'contentDom', my_func() { editor.document.on( 'keyup', my_func(event) { alert(event.data.length); } ...... } });I am using something similar to catch the keyup event
Re: Available events list
Re: Available events list
or you can try
Re: Available events list
http://diffpaste.com/#/340/