Specifications

536
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}
nearWhat, if specified, must be either "selection" or "tag selector". The default value, if
this argument is omitted, is
"selection".
mode, 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.
mode is ignored if nearWhat is "tag selector".
Returns
Nothing.
Report Functions
Report functions provide access to the Dreamweaver reporting features so you can initiate,
monitor and customize the reporting process. For more information, see Reports on page 103.
dreamweaver.isReporting()
Availability
Dreamweaver 4
Description
Checks to see if a reporting process is currently running.
Arguments
None.
Returns
A Boolean value that indicates whether a process is running (true) or not (false).
dreamweaver.showReportsDialog()
Availability
Dreamweaver 4