beautypg.com

Dreamweaver.assetpalette.caninsertorapply(), Dreamweaver.canclipcopy(), Dreamweaver.canclipcut() – Adobe Dreamweaver API Reference CS5 User Manual

Page 508

background image

503

DREAMWEAVER API REFERENCE

Enablers

Last updated 8/27/2013

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.

dreamweaver.canClipCut()

Availability
Dreamweaver 3.

Description
Checks whether Dreamweaver can perform a Cut operation.

Arguments
None.

Returns
A Boolean value:

true

if there is any selected content that can be cut to the Clipboard;

false

otherwise.