Commit Graph
7 Commits
Author SHA1 Message Date
Jos van den Oever 3d367b2aed Add load and save buttons to the editor.
Due to the use of FileReader and Blob this will not work in older browsers.
2013-07-10 11:02:57 +02:00
Philip Peitsch e2b477968f Implemented trivial singler-user only undo manager
This manager supplies really simple undo and redo behaviour. Undo is
achieved by resetting the document back to the initial state, and
replaying all operations on top of it.

This undo mechanism is not suitable for a networked operation sessions
as there is no attempt to communicate the resetting of the document
state.

Initial undo state for a document is set when startEditing is called on
a session. This state is effectively a clean document with the local
cursor added to it.

* Added undo/redo buttons to the editor
2013-07-09 01:48:24 +10:00
Jos van den Oever 1c574d4cc9 Fix JSLint issues. 2013-05-14 09:55:46 +02:00
Friedrich W. H. Kossebau d5c27b7892 Extend callbacks in the editorOptions: cursorAddedCallback, cursorRemovedCallback, registerCallbackForShutdown 2013-04-10 10:40:16 +02:00
Tobias Hintze 7455add5fc booting the editor: expose saveCallback and loginProcedure 2013-04-08 16:49:47 +02:00
Tobias Hintze 8c13d0da0e boot_editor.js and Editor cleanup round2:
most notable: untangle init_gui_and_doc:
  provide clean chain of callbacks,
  separate collaborative/network hookup from document loading,
  changeSomeNames, comments and declarations
2013-04-03 13:37:17 +02:00
Tobias Hintze 28eaa42dc8 make webodf/Editor a class; change getin.js to boot_editor.js 2013-03-26 09:07:59 +01:00