beautypg.com

Dreamweaver.assetpalette.getselectedcategory(), Dreamweaver.assetpalette.getselecteditems() – Adobe Dreamweaver API Reference CS5 User Manual

Page 311

background image

306

DREAMWEAVER API REFERENCE

Page content

Last updated 8/27/2013

Description
Edits selected elements with primary external editor or Custom Edit control. For colors, the color picker appears. For
URLs, a dialog box appears and prompts the user for a URL and a nickname. This function is not available for the Site
list of colors and URLs.

Arguments
None.

Returns
Nothing.

Enabler
See “

dreamweaver.assetPalette.canEdit()

” on page 502.

dreamweaver.assetPalette.getSelectedCategory()

Availability
Dreamweaver 4.

Description
Returns the currently selected category.

Arguments
None.

Returns
The currently selected category, which can be one of the following:

"templates"

,

"library"

,

"images"

,

"movies"

,

"shockwave"

,

"flash"

,

"scripts"

,

"colors"

, or

"urls"

.

dreamweaver.assetPalette.getSelectedItems()

Availability
Dreamweaver 4.

Description
Returns an array of the selected items in the Assets panel, either in the Site or Favorites list.

Arguments
None.

Returns
An array of the following three strings for each selected item:

The name string, which is the name/filename or nickname that appears in the Assets panel.

The

value

string, which is the full path, full URL, or color value, depending on the selected item.