User Guide
History functions 169
dreamweaver.historyPalette.replaySteps()
Availability
Dreamweaver 3.
Description
Replays the specified history steps in the active document. Dreamweaver warns the user of
possible unintended consequences if the specified steps include an unrepeatable action.
Arguments
arrayOfIndices
■ The arrayOfIndices argument is an array of position indices in the History panel.
Returns
A string that contains the JavaScript that corresponds to the specified history steps.
Example
A call to dreamweaver.historyPalette.replaySteps([0,2,3]) function plays the first,
third, and fourth steps in the History panel.
dreamweaver.historyPalette.saveAsCommand()
Availability
Dreamweaver 3.
Description
Opens the Save As Command dialog box, which lets the user save the specified steps as a
command. Dreamweaver warns the user of possible unintended consequences if the steps
include an unrepeatable action.
Arguments
arrayOfIndices
■ The arrayOfIndices argument is an array of position indexes in the History panel.
Returns
A string that contains the JavaScript that corresponds to the specified history steps.
000_DW_API_Print.book Page 169 Wednesday, July 20, 2005 11:58 AM