User Guide

Quick Tag Editor functions 523
Arguments
startTag
The startTag argument is the source that is associated with the opening tag.
Returns
Nothing.
Example
The following code wraps a link around the current selection:
var theDOM = dw.getDocumentDOM();
var theSel = theDOM.getSelectedNode();
if (theSel.nodeType == Node.TEXT_NODE){
theDOM.wrapTag('<a href="foo.html">');
}
dreamweaver.showQuickTagEditor()
Availability
Dreamweaver 3.
Description
Displays the Quick Tag Editor for the current selection.
Arguments
{nearWhat}, {mode}
The optional nearWhat argument, if specified, must be either "selection" or "tag
selector"
. If this argument is omitted, the default value is "selection".
The optional mode argument, if specified, must be "default", "wrap", "insert", or
"edit". If mode is "default" or omitted, Dreamweaver uses heuristics to determine the
mode to use for the current selection. The
mode argument is ignored if nearWhat is "tag
selector"
.
Returns
Nothing.
000_DW_API_Print.book Page 523 Wednesday, July 20, 2005 11:58 AM