beautypg.com

Dreamweaver.historypalette.saveascommand(), Dreamweaver.historypalette.setselectedsteps() – Adobe Dreamweaver API Reference CS5 User Manual

Page 134

background image

129

DREAMWEAVER API REFERENCE

Workspace

Last updated 8/27/2013

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 example 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.

Arguments
arrayOfIndices

The arrayOfIndices function is an array of position indices in the History panel. If no argument is supplied, all the
steps are unselected.

Returns
Nothing.

Example
The following example selects the first, second, and third steps in the History panel

dreamweaver.historyPalette.setSelectedSteps([0,1,2]);