DREAMWEAVER CS3
301
API Reference
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()" on page 461.
Example
The following call to the
function inserts the code snippet at the location
dw.snippetPalette.insertSnippet()
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.
Spry widget editing functions
Dreamweaver CS3 provides enhanced editing functions for Spry and other dynamic widgets.