Tag editor and tag library functions
425
Tag editor and tag library functions
You can use tag editors to insert new tags, edit existing tags, and access reference information
about tags. The Tag Chooser lets users organize their tags so that they can easily select frequently
used tags. The tag libraries that come with Dreamweaver store information about tags that are
used in standards-based markup languages and most widely used tag-based scripting languages.
You can use the JavaScript tag editor, Tag Chooser, and tag library functions when you need to
access and work with tag editors and tag libraries in your extensions.
dom.getTagSelectorTag()
Availability
Dreamweaver MX.
Description
This function gets the DOM node for the tag that is currently selected in the Tag Selector bar at
the bottom of the document window.
Arguments
None.
Returns
The DOM node for the currently selected tag;
null
if no tag is selected.
dreamweaver.popupInsertTagDialog()
Availability
Dreamweaver MX.
Description
This function checks the VTM files to see if a tag editor has been defined for the tag. If so, the
editor for that tag pops up and accepts the start tag. If not, the start tag is inserted unmodified
into the user’s document.
Arguments
A start tag string that includes one of the following types of initial values:
•
A tag, such as
<input>
•
A tag with attributes, such as
<input type='text'>
•
A directive, such as
<%= %>
Returns
A Boolean value:
true
if anything is inserted into the document;
false
otherwise.
000_DW_API_Print.book Page 425 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...