dom.collapseFullTag()

Availability

Dreamweaver 8.

Description

This function determines whether the selection in Code view is entirely within a single pair of start and end tags or contains a single pair of start and end tags. If so, it collapses the code fragment that starts just before the start tag and ends after the end tag; if not, the function does nothing.

Arguments

allowCodeFragmentAdjustment

Returns

Nothing.

Example

The following example collapses the code fragment in the current selection in Code view that starts just before the start tag and ends just after the end tag:

var currentDOM = dw.getDocumentDOM();
currentDOM.collapseFullTag(false);

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/12_wo172.htm