Adobe Dreamweaver API Reference CS5 Bedienungsanleitung Seite 208

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 533
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 207
203
DREAMWEAVER API REFERENCE
Workspace
Last updated 8/27/2013
Arguments
None.
Returns
A Boolean value: true if a related file view is open, false otherwise.
Code collapse functions
Code collapse functions let you visually collapse and expand code. You can collapse or expand arbitrary selections of
code, or fragments between opening and closing tags. Although the code collapse functions exist in both the dom and
htmlInspector, the collapsed ranges are the same in both Code view and Cold Inspector.
dom.collapseFullTag()
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 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.
Seitenansicht 207
1 2 ... 203 204 205 206 207 208 209 210 211 212 213 ... 532 533

Kommentare zu diesen Handbüchern

Keine Kommentare