clearDirty

Release 2.11.0+

Resets the editor body's dirty flag. After calling this, isDirty() returns false.

Example

editor.clearDirty();  // clear the dirty flag

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