The Tag Editor Apis Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Adding a tag to Tag Chooser
To add the cfweather tag to the Tag Chooser:
Modify the TagChooser.xml file in the Configuration/Taglibraries/CFML folder by adding a new category called
1
Third Party Tags, which features the
<category name="Third Party Tags" icon="icons/Elements.gif" reference='CFML'>
<element name="cfweather" value='cfweather zip="" temperaturescale="fahrenheit">' />
</category>
Note: On multiuser platforms, the TagChooser.xml file also exists in the user's Configuration folder. For more infor-
mation regarding multiuser platforms, see the discussion in "Registering the tag in the tag library" on page 204.
2
Verify the
tag now appears in the Tag Chooser by performing the following steps:
cfweather
a
Select Insert > Tag.
Expand the CFML Tags group.
b
Select the Third Party Tags group that appears at the bottom of the Tag Chooser. The
c
the list box on the right.
Select
, and click the Insert button.
d
cfweather
The tag editor should appear.

The tag editor APIs functions

In order to create a new tag editor, you must provide an implementation for the
and
functions. For an example of an implementation, see "Creating a tag editor UI" on page 205.
applyTag()
inspectTag()
Availability
Dreamweaver MX.
Description
The function is called when the tag editor first appears. The function receives as an argument the tag that the user is
editing, which is expressed as a
and uses these values to initialize form elements in the tag editor.
Arguments
tag
• The
argument is the DOM node of the edited tag.
tag
Returns
Dreamweaver expects nothing.
Example
Suppose the user edits the following tag:
<crfweather zip = "94065"/>
tag, as shown in the following example:
cfweather
object. The function extracts attribute values from the tag that is being edited
dom
DREAMWEAVER CS3
Extending Dreamweaver
tag appears in
cfweather
,
inspectTag()
validateTag()
207
,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents