I am using CKEditor 4.4.3 and trying to listen to an editor\'s click event:
editor.on(\'click\', function (e) {
console.log(\'click event from attachin
Correct way of attaching listeners to the editable element in CKEditor:
editor.on( 'contentDom', function() {
var editable = editor.editable();
editable.attachListener( editable, 'click', function() {
// ...
} );
} );
Read more about the reasons why contentDom event has to be used instead of e.g. instanceReady in editable.attachListener documentation.