TinyMCE

Object
TinyMCE_UndoRedo

Class TinyMCE_UndoRedo

Constructor Summary
TinyMCE_UndoRedo(<TinyMCE_Control> inst)
Constructs a undo redo instance, this instance handles the custom undo/redo handeling in TinyMCE.
Method Summary
booleanadd(<TinyMCE_UndoRedoLevel> l)
Adds a new undo level, this will take a snapshot of the current instance HTML or use the specified level.
voidredo()
Performes a undo action, this will restore the HTML contents of the editor to a former undoed state.
voidundo()
Performes a undo action, this will restore the HTML contents of the editor to a former state.

Constructor Detail

TinyMCE_UndoRedo

TinyMCE_UndoRedo(<TinyMCE_Control> inst)
Constructs a undo redo instance, this instance handles the custom undo/redo handeling in TinyMCE.

Parameters

inst - TinyMCE editor control instance.

Method Detail

add

boolean add(<TinyMCE_UndoRedoLevel> l)
Adds a new undo level, this will take a snapshot of the current instance HTML or use the specified level.

Parameters

l - Optional undo/redo level to add.

Returns

true/false on success or failure.

redo

void redo()
Performes a undo action, this will restore the HTML contents of the editor to a former undoed state.

undo

void undo()
Performes a undo action, this will restore the HTML contents of the editor to a former state.