History functions
159
dreamweaver.historyPalette.getStepsAsJavaScript()
Availability
Dreamweaver 3.
Description
Gets the JavaScript equivalent of the specified history steps.
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.
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.getSelectedS
teps())
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.
000_DW_API_Print.book Page 159 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...