Commit Graph
28 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
Tobias Hintze 7a9e7c50c7 whitespaces 2013-03-20 22:26:01 +01:00
Friedrich W. H. Kossebau 4b20ad5c1f Add a button to the toolbar for saving
The button is only shown if there is a method "saveOdtFile" set to the editor object
2013-03-14 12:28:56 +01:00
Aditya Bhatt 6c00d77835 Remove the menubar, make dialog accessible through a little dropdown
button in the toolbar. Also simplify the CSS to make everything look
more consistent, and let dojo draw the backgrounds of some widgets
2013-02-20 13:35:47 +05:30
Aditya Bhatt 00e58e7d64 Use the currentStyle widget instead of paragraphStyles, in the toolbar
in widgets.js
2013-01-30 19:18:19 +05:30
Aditya Bhatt 3f5a90b174 toolbar should be local var 2012-12-28 12:05:06 +01:00
Aditya Bhatt 01634286bc Linted everything in editor/ 2012-12-28 12:05:06 +01:00
Aditya Bhatt 2453386448 Use de-globalized editorSession throughout editor 2012-12-28 12:05:06 +01:00
Tobias Hintze 20accd4fd2 apply AMD pattern to programs/editor
* allows use either in src or in build dir (cdn-index.html / index.html)
* creates dojo-amalgamation.js which includes selected languages
2012-12-03 16:24:08 +01:00
Aditya Bhatt 71656d78d4 Remove all instances and usages of session, documentObject, and memberId from all editor components. Obsolte after using EditorSession
(Tobias Hintze <th-git@kogmbh.com>:
 manually resolved conflict in editor.js during cherry-pick)
2012-11-30 13:22:31 +01:00
Tobias Hintze 1e0e95a7f4 hotfix: translator should be gracefull for missing translation
(this changes the "API" to translator("foo") instead of translator.foo)
2012-11-23 19:42:25 +01:00
Aditya Bhatt b5ee2848eb don't need dojoWin anymore 2012-11-16 13:06:08 +05:30
Friedrich W. H. Kossebau 51570c2838 Unbreak styles combobox in programs/editor
Also
* emit signal for cursor move again
* turn signal names into string objects
* makes Session and Document take odfCanvas instead of just odfContainer
2012-11-09 12:21:08 +01:00
Aditya Bhatt 50403ed51c font styles dialog tab 2012-11-02 16:13:29 +05:30
Friedrich W. H. Kossebau 517d2af424 Add german translations (and prepare russian one) 2012-10-23 16:32:10 +02:00
Aditya Bhatt e9b4c483c2 Make translator 'global' by reparenting to document 2012-10-23 14:22:17 +02:00
Aditya Bhatt 712463e251 First attempt at translations 2012-10-23 13:54:05 +02:00
Tobias Hintze 375457d233 update license and copyright headers 2012-10-21 20:46:20 +02:00
Aditya Bhatt dd84167113 characters styles dialog 2012-09-12 22:09:53 +05:30
Aditya Bhatt 3a0266619e use dialog in widgets 2012-09-07 18:08:16 +05:30
Aditya Bhatt fafc40ba7c more menubar additions 2012-09-03 14:19:53 +05:30
Aditya Bhatt d704c00867 menubar and styling 2012-08-29 14:05:36 +05:30
Aditya Bhatt cf3869cb5b Add a Zoom Slider widget to the toolbar 2012-08-24 07:15:43 +05:30
Aditya Bhatt 8203e78338 add SimpleStyles widget to app 2012-08-21 18:55:25 +05:30
Aditya Bhatt 9a447b71d3 New UI + toolbar 2012-08-21 16:05:53 +05:30
Jos van den Oever 7c5416a66b Fix some errors reported by JSLint. 2012-08-20 10:18:17 +02:00
Aditya Bhatt 46fc4c4c16 Create a widgets.ParagraphStyles class, and use it inside editor/widgets.js to load a Paragraph Style selector, which gives a list of all available styles. 2012-08-18 03:55:51 +05:30