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

Returns

Nothing.

Example

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