User Guide
160 Chapter 12: Workspace
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.
Example
The following code saves the fourth, sixth, and eighth steps in the History panel as a command:
dreamweaver.historyPalette.saveAsCommand([3,5,7]);
dreamweaver.historyPalette.setSelectedSteps()
Availability
Dreamweaver 3.
Description
Selects the specified steps in the History panel.
000_DW_API_Print.book Page 160 Wednesday, August 20, 2003 9:14 AM