The
cfweather
Select cfweather, and click the Insert button.
The tag editor should appear.
Tag editor APIs
In order to create a new tag editor, you must provide an implementation for the
,
inspectTag()
validateTag()
implementation, see
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
attribute values from the tag that is being edited 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"/>
If the editor contains a text field for editing the
the form element so that the user sees the actual ZIP code in the text field, rather than an
empty field.
The following code performs the initialization:
function inspectTag(tag)
{
document.forms[0].zip.value = tag.zip
}
tag appears in the list box on the right.
, and
applyTag()
"Creating a tag editor UI" on page
functions. For an example of an
272.
object. The function extracts
dom
attribute, the function needs to initialize
zip
Tag editor APIs
275
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers