Dreamweaver.saveall(), Dreamweaver.savedocument() – Adobe Dreamweaver API Reference CS5 User Manual
Page 266
261
DREAMWEAVER API REFERENCE
Document
Last updated 8/27/2013
Description
Reverts the specified document to the previously saved version.
Arguments
documentObject
,
warn
•
The
documentObject
argument is the object at the root of the DOM tree of the document, which is the value that
the
dreamweaver.getDocumentDOM()
function returns.
•
The
warn
argument is a Boolean value that specifies whether to warn the users that unsaved changes will be
discarded. If not supplied, this value defaults to
true
.
Returns
A Boolean value:
true
if Dreamweaver must warn the user;
false
otherwise.
Enabler
See “
dreamweaver.canRevertDocument()
dreamweaver.saveAll()
Availability
Dreamweaver 3.
Description
Saves all open documents, opening theSave As dialog box for any documents that have not been saved previously.
Arguments
None.
Returns
Nothing.
Enabler
See “
dreamweaver.saveDocument()
Availability
Dreamweaver 2.
Description
Saves the specified file on a local computer.
Note: In Dreamweaver 2, if the file is read-only, Dreamweaver tries to check it out. If the document is still read-only after
this attempt, or if it cannot be created, an error message appears.