The other day I needed the ability to fire a JavaScript event when a key was pressed while in a CKEDITOR instance. A simple jQuery keyup event wouldn't work, and internet searches were turning up dead ends about a deprecated CKEDITOR plugin. Finally, I came across the correct syntax and wanted to post it here. In this example, the name of the CKEDITOR instance is "summary".
CKEDITOR.instances['summary'].on('key', function () {
//Do something here.
});
Need a fresh perspective on a tough project?
Let’s talk about how RDG can help.