EditLive! 9 Documentation : setIsDirty Method

This method can be used to indicate that the current content of EditLive! has changed since the content was initially loaded into the editor. 

This function was introduced in EditLive! 9.0.3.146.

Syntax

JavaScript
editliveInstance.setIsDirty(dirty);

Parameters

dirty

A boolean that specifies if the content of EditLive! has changed since the content was initially loaded into the editor.

Example (EditLive 9.0.3.146+)

editlive_js.setIsDirty(true);