undoredo.js
No description.

File Location

/goog/editor/plugins/undoredo.js

Classes

goog.editor.plugins.UndoRedo
Encapsulates undo/redo logic using a custom undo stack (i.e. not browser built-in). Browser built-in undo stacks are too flaky (e.g. IE's gets clobbered on DOM modifications). Also, this allows interleaving non-editing commands into the undo stack via the UndoRedoManager.
goog.editor.plugins.UndoRedo.CursorPosition_
Stores the state of the selection in a way the survives DOM modifications that don't modify the user-interactable content (e.g. making something bold vs. typing a character). TODO(user): Completely get rid of this and use goog.dom.SavedCaretRange.
goog.editor.plugins.UndoRedo.UndoState_
This object encapsulates the state of an editable field.

Public Protected Private

Enumerations

Global Functions

goog.editor.plugins.UndoRedo.CursorPosition_.computeEndOffsetIE_(range) number
Compute the number of characters to the end of the range in IE.
Arguments:
range : TextRange
The range to compute an offset for.
Returns: number  The number of characters to the end of the range.
code »

Directory plugins

File Reference