Specifications

Appendix A658
Returns
Nothing.
dreamweaver.nodeToOffsets()
Availability
Dreamweaver 2, deprecated in 3 in favor of dom.nodeToOffsets().
Description
Gets the position of a specific node in the DOM tree, which is expressed as byte offsets into the
documents source code.
Arguments
node
node
must be a tag, comment, or range of text that is a node in the tree that
dreamweaver.getDocumentDOM() returns.
Returns
An array that contains two integers. The first integer is the byte offset for the beginning of the tag,
text, or comment; the second integer is the byte offset for the end of the node.
dreamweaver.templatePalette.getSelectedTemplate()
Availability
Dreamweaver 3, deprecated in 4 in favor of
dreamweaver.assetPalette.getSelectedItems().
Description
Gets the path of the selected template.
Arguments
None.
Returns
A string that contains the path of the template, which is expressed as a file:// URL.
dreamweaver.offsetsToNode()
Availability
Dreamweaver 2, deprecated in 3 in favor of dom.offsetsToNode().
Description
Gets the object in the DOM tree that completely contains the range of characters between the
specified beginning and end points.
Arguments
offsetBegin, offsetEnd
The arguments are the beginning and end points, respectively, of a range of characters, which is
expressed as byte offsets into the documents source code.
Returns
The tag, text, or comment object that completely contains the specified range of characters.