ondiscardmodified()

Description

This event is triggered when a document has already been modified, but an action to discard the document is called.

Data Type

<function>

Syntax

DocumentEditorObject.document.ondiscardmodified = ...;

Example


DocumentEditorObject.document.ondiscardmodified = function()
{
	return false;  // if true is returned, the document will be retained, and the discard action will be cancelled.
}

See Also

.document.discard()
.image.editDocument()