Specifications

Appendix A656
Example
dreamweaver.getObjectTags("document", "IMG"), depending on the contents of the active
document, might return an array with the following items:
"<IMG SRC="/images/dot.gif" WIDTH="10" HEIGHT="10" NAME="bullet">"
"<IMG SRC="header.gif" WIDTH="400" HEIGHT="32" NAME="header">"
"<IMG SRC="971208_nj.jpg" WIDTH="119" HEIGHT="119" NAME="headshot">"
dreamweaver.getSelection()
Availability
Dreamweaver 2, deprecated in 3. See dom.getSelection() on page 546.
Description
Gets the selection in the current document, which is expressed as byte offsets into the documents
source code.
Arguments
None.
Returns
An array that contains two integers. The first integer is the byte offset for the beginning of the
selection; the second integer is the byte offset for the end of the selection. If the two numbers are
the same, the current selection is an insertion point.
dreamweaver.libraryPalette.deleteSelectedItem()
Availability
Dreamweaver 3, deprecated in Dreamweaver 4 in favor of using
dreamweaver.assetPalette.setSelectedCategory(), then calling
dreamweaver.assetPalette.removeFromFavorites().
Description
Removes the selected library item from the Library panel and deletes its associated Dreamweaver
Library Item (LBI) file from the Library folder at the root of the current site. Instances of the
deleted item might still exist in pages throughout the site.
Arguments
None.
Returns
Nothing.
dreamweaver.libraryPalette.getSelectedItem()
Availability
Dreamweaver 3, deprecated in 4 in favor of
dreamweaver.assetPalette.getSelectedItems().
Description
Gets the path of the selected library item.