isDirty

public function isDirty():Boolean
Returns true/false if the editor is dirty or not. It will get dirty if the user has made modifications to the contents.

Examples

if (tinyMCE.activeEditor.isDirty())
    alert("You must save your contents.");

Returns

Boolean True/false if the editor is dirty or not. It will get dirty if the user has made modifications to the contents.
User Image
  • 2013-01-18 13:15:47

bebbi

Of course, you have to be able to reset it after your ajax save etc right?
This should do the job (ed = tinyMCE.activeEditor)
ed.startContent = ed.getContent({format : 'raw'});