User Guide

242 Workspace
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
The allowCodeFragmentAdjustment argument is a required, Boolean value. If true, this
argument currently has no effect, or has the same effect as a value of
false. If false,
Dreamweaver collapses the code that begins immediately before the opening tag and ends
immediately after the ending tag without any modification
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);
dom.collapseFullTagInverse()
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 that
precedes the start tag and the code that follows the end tag; if not, the function does nothing.
Arguments
allowAdjustmentOfCodeFragments
The allowAdjustmentOfCodeFragments argument is a required, Boolean value. If true,
Dreamweaver adjusts the boundaries of the code before the start tag and of the code after
the end tag to perform a smart collapse, which preserves current indenting and spacing. If
false, Dreamweaver collapses the code fragments that are before the open tag and after
the end tag exactly as indicated by the selection.
000_DW_API_Print.book Page 242 Wednesday, July 20, 2005 11:58 AM