Adobe 38040334 - Dreamweaver CS3 User Manual page 189

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

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
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
open tag and after the end tag exactly as indicated by the selection.
Returns
Nothing.
Example
The following example adjusts the boundaries of the code before the starting tag after the ending tag to perform a
smart collapse that preserves indenting and spacing:
var currentDOM = dw.getDocumentDOM();
currentDOM.collapseFullTagInverse(true);
dom.collapseSelectedCodeFragment()
Availability
Dreamweaver 8.
Description
This function collapses the selected code in Code view. If the selection is already collapsed, this function does
nothing.
Arguments
allowCodeFragmentAdjustment
• The
allowCodeFragmentAdjustment
aries of the current selection to perform a smart collapse, which preserves current indenting and spacing. If
Dreamweaver collapses the currently selected code fragment exactly as indicated by the selection.
Returns
Nothing.
Example
The following example collapses the selected code fragment, without modification, in Code view:
var currentDOM = dw.getDocumentDOM();
currentDOM.collapseSelectedCodeFragment(false);
argument is a required, Boolean value. If
, Dreamweaver collapses the code fragments that are before the
false
is a required, Boolean value. If
, Dreamweaver adjusts
true
, Dreamweaver modifies the bound-
true
DREAMWEAVER CS3
184
API Reference
,
false

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents