[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/js/codemirror/js/ -> undo.js (summary)

Storage and control for undo information within a CodeMirror editor. 'Why on earth is such a complicated mess required for that?', I hear you ask. The goal, in implementing this, was to make the complexity of storing and reverting undo information depend only on the size of the edited or restored content, not on the size of the whole document. This makes it necessary to use a kind of 'diff' system, which, when applied to a DOM tree, causes some complexity and hackery.

File Size: 410 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  UndoHistory()
  temp()
  setTemp()
  buildLine()
  nextBR()
  removeRange()

Functions
Functions that are not part of a class:

UndoHistory(container, maxDepth, commitDelay, editor)   X-Ref
No description

temp(node)   X-Ref
No description

setTemp(node, line)   X-Ref
No description

buildLine(node)   X-Ref
No description

nextBR(node, dir)   X-Ref
No description

removeRange(from, to)   X-Ref
No description



Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1