Dreamweaver 8.
This function collapses the selected code in Code view. If the selection is already collapsed, this function does nothing.
allowCodeFragmentAdjustment
allowCodeFragmentAdjustment is a required, Boolean value. If true, Dreamweaver modifies the boundaries of the current selection to perform a smart collapse, which preserves current indenting and spacing. If false, Dreamweaver collapses the currently selected code fragment exactly as indicated by the selection.
Nothing.
The following example collapses the selected code fragment, without modification, in Code view:
var currentDOM = dw.getDocumentDOM(); currentDOM.collapseSelectedCodeFragment(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_wo174.htm