I understand that there are questions about how to implement an event handler for CKEDITOR 4. I can use this code to get data from the keyboard, but I can not get the data after pressing the keys:
CKEDITOR.instances.editor.on('key', function (e){ document.getElementById("preview").innerHTML = CKEDITOR.instances.editor.getData(); });
Therefore, when I enter a string like "aaa" in the text editor field, the first character is never selected. Therefore, my div id = "preview" will only show "aa". I iterated over the e-object, which is rather complicated, but nothing helps me, as it is useful.
I also do not see other people writing about it. CKEDITOR does not seem to have a βkeyupβ, although I can see that it is written a lot. Should "keyup" be in older versions?
I hope that I have clearly stated my problem.
source share