Dom.striptag(); Dom.wraptag(); Dreamweaver.showquicktageditor() - MACROMEDIA DREAMWEAVER MX 2004-DREAMWEAVER API Reference

Dreamweaver api reference
Table of Contents

Advertisement

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
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.
argument is the source that is associated with the opening tag.
Quick Tag Editor functions
407

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-DREAMWEAVER API and is the answer not in the manual?

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents