onChange

public event onChange(sender:tinymce.Editor)
Fires when a new undo level is added to the editor.

Examples

// Adds an observer to the onChange event using tinyMCE.init
tinyMCE.init({
   ...
   setup : function(ed) {
	  ed.onChange.add(function(ed, l) {
		  console.debug('Editor contents was modified. Contents: ' + l.content);
	  });
   }
});

Params

Name Type Description
sender tinymce.Editor Editor instance.