beautypg.com

Dreamweaver.historypalette.setundostate(), Insert object functions, Dreamweaver.objectpalette.getmenudefault() – Adobe Dreamweaver API Reference CS5 User Manual

Page 135: Dreamweaver.objectpalette.setmenudefault()

background image

130

DREAMWEAVER API REFERENCE

Workspace

Last updated 8/27/2013

dreamweaver.historyPalette.setUndoState()

Availability
Dreamweaver 3.

Description
Performs the correct number of undo or redo operations to arrive at the specified undo state.

Arguments
undoState

The undoState argument is the object that the

dreamweaver.historyPalette.getUndoState()

function

returns.

Returns
Nothing.

Insert object functions

Insert object functions handle operations related to the objects on the Insert bar or listed on the Insert menu.

dreamweaver.objectPalette.getMenuDefault()

Availability
Dreamweaver MX 2004.

Description
Retrieves the ID string of the default item for the associated menu.

Arguments
menuId

The menuId argument is the string that defines the menu in the insertbar.xml file.

Returns
A string value defining the ID of the default item.

Example
The following example assigns the current default object for the Media menu to the

defID

variable:

var defId = dw.objectPalette.getMenuDefault("DW_Media");

dreamweaver.objectPalette.setMenuDefault()

Availability
Dreamweaver MX 2004.