quintin
quintin

Reputation: 837

API for ckeditor everytime content gets loaded into it

In ckeditor I want to do some operation every time new content get loaded or the existing content refreshes.

As instanceready and onload API's are getting executed only once, I am not able to do the desired operation.

Upvotes: 1

Views: 59

Answers (1)

Comandeer
Comandeer

Reputation: 360

Probably you are looking for the contentDom event, which is fired after setting editor's data or switching editor's modes.

If you want to always do something even when only little change occurred in the content, then probably the change event is the best option.

Upvotes: 0

Related Questions