Textbox.io 2.x Documentation : editor.content.isDirty()

Check if an instance's content has been updated or changed since it was set.

Content state is clean after any of these methods are invoked:

  • textboxio.replace()
  • textboxio.replaceAll()
  • textboxio.inline()
  • textboxio.inlineAll()
  • editor.content.set()
  • editor.content.setDirty(false)

Content state is considered dirty if:

  • the content is modified
  • editor.content.setDirty(true) is used

Returns

Boolean

Returns True if the content has changed since it was last set.