Dreamweaver.snippetpalette.insert(), Dreamweaver.snippetpalette.insertsnippet(), Dreamweaver.snippetpalette.rename() – Adobe Dreamweaver API Reference CS5 User Manual
Page 337

332
DREAMWEAVER API REFERENCE
Page content
Last updated 8/27/2013
dreamweaver.snippetPalette.insert()
Availability
Dreamweaver MX.
Description
Applies the selected snippet from the Snippets panel to the current selection.
Arguments
None.
Returns
Nothing.
Enabler
See “
dreamweaver.snippetpalette.canInsert()
dreamweaver.snippetPalette.insertSnippet()
Availability
Dreamweaver MX.
Description
Inserts the indicated snippet into the current selection.
Arguments
path
•
A string that specifies the path to the snippet relative to the Snippets folder.
Returns
A Boolean value.
Enabler
See “
dreamweaver.snippetpalette.canInsert()
Example
The following call to the
dw.snippetPalette.insertSnippet()
function inserts the code snippet at the location
specified by the argument into the current document at the insertion point:
dw.snippetPalette.insertSnippet('Text\\Different_Link_Color.csn');
dreamweaver.snippetPalette.rename()
Availability
Dreamweaver MX.