Adobe 38040334 - Dreamweaver CS3 User Manual page 304

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Attribute
name
description
preview
type
You can use the following methods to add Snippets panel functions to your extensions.
dreamweaver.snippetPalette.getCurrentSnippetPath()
Availability
Dreamweaver MX 2004.
Description
Returns the path to the snippet that is currently selected in the Snippets panel.
Arguments
None.
Returns
The path, relative to the Snippets folder, to the snippet selected in the Snippets panel. Returns an empty string if no
snippet is selected.
dreamweaver.snippetPalette.newFolder()
Availability
Dreamweaver MX.
Description
Creates a new folder with the default name
Arguments
None.
Returns
Nothing.
dreamweaver.snippetPalette.newSnippet()
Availability
Dreamweaver MX.
Description
Opens the Add Snippet dialog box and gives it focus.
Description
Name of snippet
Snippet description
Type of preview:
"code"
to display the snippet in preview area or
to display the snippet rendered in HTML in the Preview area.
If the snippet is used to wrap a user selection,
inserted before the selection,
"block"
and puts an text box around the default name.
untitled
"design"
; if the snippet should be
"wrap"
.
DREAMWEAVER CS3
299
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents