Tag editor and tag library functions, Dom.gettagselectortag(), Dreamweaver.popupinserttagdialog() – Adobe Dreamweaver API Reference CS5 User Manual
Page 492

487
DREAMWEAVER API REFERENCE
Code
Last updated 8/27/2013
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
start_tag_string
A start tag string that includes one of the following types of initial values:
•
A tag, such as
•
A tag with attributes, such as
•
A directive, such as
<%= %>
Returns
A Boolean value:
true
if anything is inserted into the document;
false
otherwise.