User Guide

442 Chapter 19: Enablers
dreamweaver.assetPalette.canEdit()
Availability
Dreamweaver 4.
Description
Enables menu items in the Assets panel for editing.
Arguments
None.
Returns
Returns a Boolean value: true if the asset can be edited; false otherwise. Returns a false value
for colors and URLs in the Site list, and returns a
false value for a multiple selection of colors
and URLs in the Favorites list.
dreamweaver.assetPalette.canInsertOrApply()
Availability
Dreamweaver 4.
Description
Checks if the selected elements can be inserted or applied. Returns either a true or false value
so the menu items can be enabled or disabled for insertion or application.
Arguments
None.
Returns
Returns a Boolean value: true if the selected elements can be inserted or applied; false if the
current page is a template and the current category is Templates. The function also returns a
false value if no document is open or if a library item is selected in the document and the
current category is Library.
dreamweaver.canClipCopy()
Availability
Dreamweaver 3.
Description
Checks whether Dreamweaver can perform a Copy operation.
Arguments
None.
Returns
A Boolean value: true if there is any content selected that can be copied to the Clipboard;
false otherwise.
000_DW_API_Print.book Page 442 Wednesday, August 20, 2003 9:14 AM