This is a plugin that tries to fire a 'change' event whenever the content of a CKEditor instance is changed.
Alfonso Martínez de Lizarrondo
Falcana
Extract the contents of the zip in you plugins directory, so it ends up like
this
ckeditor\ ... images\ lang\ plugins\ ... onchange\ plugin.js docs\ install.html ... skins\ themes\
Now add the plugin in your config.js or custom js configuration
file:
config.extraPlugins='onchange';
You can limit the minimum time between changes to avoid getting too many events fired:
config.minimumChangeMilliseconds = 100; // 100 milliseconds (default value)
.
Write your listener for the new 'change' event and perform whatever action you need there.
editor.on( 'change', function(e) { console.log(e) });
.
CKEditor is © CKSource.com