MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 242

Dreamweaver api reference
Table of Contents

Advertisement

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 currently has no effect, or has the same effect as a value of
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
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
, Dreamweaver collapses the code fragments that are before the open tag and after
false
the end tag exactly as indicated by the selection.
242
Workspace
argument is a required, Boolean value. If
argument is a required, Boolean value. If
, this
true
. If
,
false
false
,
true

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents