Adobe Dreamweaver API Reference CS5 Instrukcja Użytkownika Strona 133

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 533
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 132
128
DREAMWEAVER API REFERENCE
Workspace
Last updated 8/27/2013
Example
If the three steps shown in the following example are selected in the History panel, a call to the
dreamweaver.historyPalette.getStepsAsJavaScript(dw.historyPalette.getSelectedSteps()) function
returns
"dw.getDocumentDOM().insertText('Hey diddle diddle, a cat and a fiddle, the cow jumped
over the moon.');\ ndw.getDocumentDOM().newBlock();\n dw.getDocumentDOM().insertHTML('<img
src=\ "../wdw99/50browsers/images/sun.gif\">', true);\n":
dreamweaver.historyPalette.getUndoState()
Availability
Dreamweaver 3.
Description
Gets the current undo state.
Arguments
None.
Returns
The position of the Undo marker in the History panel.
dreamweaver.historyPalette.replaySteps()
Availability
Dreamweaver 3.
Description
Replays the specified history steps in the active document. Dreamweaver warns the user of possible unintended
consequences if the specified steps include an unrepeatable action.
Arguments
arrayOfIndices
The arrayOfIndices argument is an array of position indices in the History panel.
Returns
A string that contains the JavaScript that corresponds to the specified history steps.
Przeglądanie stron 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 532 533

Komentarze do niniejszej Instrukcji

Brak uwag