MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 392

Dreamweaver api reference
Table of Contents

Advertisement

The following sample shows a snippet file:
<snippet name="Detect Flash" description="VBscript to check for Flash
ActiveX control" preview="code" factory="true" type="wrap" >
<insertText location="beforeSelection">
<![CDATA[ ------- code --------- ]]>
</insertText>
<insertText location="afterSelection">
<![CDATA[ ------- code --------- ]]>
</insertText>
</snippet>
Snippet tags in CSN files have the following attributes:
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.
392
Page Content
Description
Name of snippet
Snippet description
Type of preview:
"code"
to display the snippet rendered in HTML in the Preview
"design"
area.
If the snippet is used to wrap a user selection,
snippet should be inserted before the selection,
to display the snippet in preview area or
; if the
"wrap"
.
"block"

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents