User Guide
Tag editor and tag library functions 427
dreamweaver.tagLibrary.getTagLibraryDOM()
Availability
Dreamweaver MX.
Description
Given the URL of a filename.vtm file, this function returns the DOM for that file, so that its
contents can be edited.
This function should be called only when the Tag Library editor is active.
Arguments
fileURL
• The fileURL argument is the URL of a filename.vtm file, relative to the Configuration/Tag
Libraries folder, as shown in the following example:
"HTML/img.vtm"
Returns
A DOM pointer to a new or previously existing file within the TagLibraries folder.
dreamweaver.tagLibrary.getSelectedLibrary()
Availability
Dreamweaver MX.
Description
If a library node is selected in the Tag Library editor, this function gets the library name.
Arguments
None.
Returns
A string, the name of the library that is currently selected in the Tag Library editor; returns an
empty string if no library is selected.
dreamweaver.tagLibrary.getSelectedTag()
Availability
Dreamweaver MX.
Description
If an attribute node is currently selected, this function gets the name of the tag that contains the
attribute.
Arguments
None.
Returns
A string, name of the tag that is currently selected in the Tag Library editor; returns an empty
string if no tag is selected.
000_DW_API_Print.book Page 427 Wednesday, August 20, 2003 9:14 AM