beautypg.com

Dreamweaver.getredotext(), Dreamweaver.getundotext() – Adobe Dreamweaver API Reference CS5 User Manual

Page 128

background image

123

DREAMWEAVER API REFERENCE

Workspace

Last updated 8/27/2013

Description
Undoes the previous step in the document.

Arguments
None.

Returns
Nothing.

Enabler
See “

dom.canUndo()

” on page 502

.

dreamweaver.getRedoText()

Availability
Dreamweaver 3.

Description
Gets the text that is associated with the editing operation that will be redone if the user selects Edit > Redo or presses
Control+Y (Windows) or Command+Y (Macintosh).

Arguments
None.

Returns
A string that contains the text that is associated with the editing operation that will be redone.

Example
If the user’s last action applied bold to selected text, a call to the

dreamweaver.getRedoText()

function returns

"Repeat Apply Bold"

.

dreamweaver.getUndoText()

Availability
Dreamweaver 3.

Description
Gets the text that is associated with the editing operation that will be undone if the user selects Edit > Undo or presses
Control+Z (Windows) or Command+Z (Macintosh).

Arguments
None.

Returns
A string that contains the text that is associated with the editing operation that will be undone.