onDocumentSave

Called before document will be saved. This callback allows cancellation of the save process.

Return

true if the document should be saved, false if saving should be cancelled.

Parameters

document

Instance of document to be saved.

saveOptions

Save options to be applied to the document. You may change parameters on this object to control how document is saved.