CKEditor – Detect when typing stopped

I was trying to figure out a way to detect when the user typing in the editor has paused / stopped. The documentation of CKEditor and Stackoverflow do not have my answer, fortunately I was able to come up with a simple solution!

I first started with the basics – I played with a simple <textarea />  without CKEditor and the code bellow worked for me:

And next –  I applied the code above to a CKEditor instance.

CKEditor doesn’t have  keyup  or keydown  events, but what they have is  key

So I did the following using closures and it worked for me!

Do you need help with a project? or have a new project in mind that you need help with?

Contact Me