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.