Initializes the change or not in the editor body. Using the isDirty() function after calling this function will return false.


Example:

editor.clearDirty();	// dirty flag init

if(!editor.isDirty()) {
	console.log('No changes have been made.');
};