beautypg.com

Dreamweaver.canclippaste(), Dreamweaver.candeleteselection(), Dreamweaver.canexporttemplatedataasxml() – Adobe Dreamweaver API Reference CS5 User Manual

Page 509

background image

504

DREAMWEAVER API REFERENCE

Enablers

Last updated 8/27/2013

dreamweaver.canClipPaste()

Availability
Dreamweaver 3.

Description
Checks whether Dreamweaver can perform a Paste operation.

Arguments
None.

Returns
A Boolean value:

true

if the Clipboard contains any content that can be pasted into the current document or the active

window in the Site panel (on the Macintosh, a text field in a floating panel or dialog box);

false

otherwise.

dreamweaver.canDeleteSelection()

Availability
Dreamweaver 3.

Description
Checks whether Dreamweaver can delete the current selection. Depending on the window that has focus, the deletion
might occur in the Document window or the Site panel (on the Macintosh, in a text field in a dialog box or floating
panel).

Arguments
None.

Returns
A Boolean value:

true

if the opening and closing offsets for the selection are different, which indicates that there is a

selection;

false

if the offsets are the same, indicating that there is only an insertion point.

dreamweaver.canExportTemplateDataAsXML()

Availability
Dreamweaver MX.

Description
Checks whether Dreamweaver can export the current document as XML.

Arguments
None.

Returns
A Boolean value:

true

if you can perform an export on the current document;

false

otherwise.