Dreamweaver.clippaste(), Dreamweaver.getclipboardtext() – Adobe Dreamweaver API Reference CS5 User Manual
Page 328
323
DREAMWEAVER API REFERENCE
Page content
Last updated 8/27/2013
Returns
Nothing.
Enabler
See “
dreamweaver.clipPaste()
Availability
Dreamweaver 3. Added the strPasteOption argument in Dreamweaver 8.
Description
Pastes the contents of the Clipboard into the current document, dialog box, floating panel, or Site panel.
Arguments
{strPasteOption}
•
The strPasteOption argument, which is optional, specifies the type of paste to perform. Values include:
"text"
,
"structured"
,
"basicFormat"
, and
"fullFormat"
.
Returns
Nothing.
Enabler
See “
Example
The following example pasts the contents of the Clipboard as text:
dw.clipPaste("text");
dreamweaver.getClipboardText()
Availability
Dreamweaver 3.
Description
Gets all the text that is stored on the Clipboard.
Arguments
{bAsText}
•
The bAsText Boolean value, which is optional, specifies whether the Clipboard content is retrieved as text. If
bAsText is a value of
true
, the Clipboard content is retrieved as text. If bAsText is a value of
false
, the content
retains formatting. This argument defaults to
false
.