Adobe 38040334 API Reference - Page 419
dom.stripTag, dom.wrapTag, dreamweaver.showQuickTagEditor
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 419 highlights
DREAMWEAVER CS3 414 API Reference Arguments None. Returns Nothing. 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(''); } dreamweaver.showQuickTagEditor() Availability Dreamweaver 3.
![](/manual_guide/products/adobe-38040334-api-reference-b593776/419.png)