User Guide
326 Chapter 15: Page Content
dreamweaver.snippetPalette.insertSnippet()
Availability
Dreamweaver MX.
Description
Inserts the indicated snippet into the current selection.
Arguments
• A string that specifies the path to the snippet relative to the Snippets folder.
Returns
A Boolean value.
Enabler
“dreamweaver.snippetpalette.canInsert()” on page 455.
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.
Description
Activates a text box around the selected folder name or file nickname and lets you edit the
selected element.
Arguments
None.
Returns
Nothing.
dreamweaver.snippetPalette.remove()
Availability
Dreamweaver MX.
Description
Deletes the selected element or folder from the Snippets panel and deletes the file from the disk.
Returns
Nothing.
000_DW_API_Print.book Page 326 Wednesday, August 20, 2003 9:14 AM