Quick Tag Editor functions
407
dom.stripTag()
Availability
Dreamweaver 3.
Description
Removes the tag from around the current selection, leaving any contents. If the selection has no
tags or contains more than one tag, Dreamweaver reports an error.
Arguments
None.
Returns
Nothing.
dom.wrapTag()
Availability
Dreamweaver 3.
Description
Wraps the specified tag around the current selection. If the selection is unbalanced, Dreamweaver
reports an error.
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.
000_DW_API_Print.book Page 407 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...