
490
DREAMWEAVER API REFERENCE
Code
Last updated 8/27/2013
Returns
A string: the name of the tag that is currently selected in the Tag Library editor; returns an empty string if no tag is
selected.
dreamweaver.tagLibrary.importDTDOrSchema()
Availability
Dreamweaver MX.
Description
This function imports a DTD or schema file from a remote server into the tag library.
Arguments
fileURL, Prefix
• The fileURL argument is the path to DTD or schema file, in local URL format.
• The Prefix argument is the prefix string that should be added to all tags in this tag library.
Returns
Name of the imported tag library.
dreamweaver.tagLibrary.getImportedTagList()
Availability
Dreamweaver MX.
Description
This function generates a list of tagInfo objects from an imported tag library.
Arguments
libname
• The libname argument is the name of the imported tag library.
Returns
Array of tagInfo objects.
A taginfo object contains information about a single tag that is included in the tag library. The following properties
are defined in a
tagInfo object:
• The tagName property, which is a string
• The attributes property, which is an array of strings. Each string is the name of an attribute that is defined for
this tag.
Example:
The following example shows that using the dw.tagLibrary.getImportedTagList() function can get an array of
tags from the
libName library:
Komentáře k této Příručce