Page tree
Skip to end of metadata
Go to start of metadata

RELEASE 2.8.0 OR ABOVE 

'It determines whether there is any edited content in Synap Editor.


Return:

TypeDescription
Boolean true || false (Returns true if there is edited content.)

Note: The isEdited() function uses the undo stack to quickly check whether there is edited content. Even if there is no actual change (if you enter "A" and delete it with the backspace key), it can be judged there was editing.

Example:

var html;
if(!editor.isEdited()) { // HTML is imported only when it is determined that there is edited content in the editor.
	html = editor.getPublishingHtml();
}
  • No labels