How to find out if ckeditor content has changed

How to find out if ckeditor content is changing. I need to call a function in javascript whenever the contents of ckeditor change.

+3
source share
2 answers

I tried the following functions and worked fine for me. I used CKEDITOR 4, and in my case I executed a callback function based on the return value of checkDirty () s.

checkDirty ()

resetDirty ()

+1
source

Maybe you want this plugin?

-1
source

Source: https://habr.com/ru/post/1732305/


All Articles