Commit Graph
63 Commits
Author SHA1 Message Date
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
Friedrich W. H. Kossebau 44db72f74a Stop passing odfCanvas via document.odfCanvas to the zoomSlider, use new EditorSession.getOdfCanvas 2013-03-12 12:00:26 +01:00
Aditya Bhatt 29df7b772a * Move XHR from editor.js to EditorSession, stop making fonts global,
and make this synchronous
* Some explanatory comments about the simple css parsing
* Use a better technique for deduplicating font family declarations,
pick the alphabetically first font name
2013-03-06 19:51:19 +05:30
Aditya Bhatt 1f894d0691 Remove lots of whitespace 2013-03-06 19:51:19 +05:30
Aditya Bhatt cf583fc8ea Explanatory Comments 2013-03-06 19:51:19 +05:30
Aditya Bhatt 7e30f26cc9 add a little check for availability of font declarations in the editor 2013-03-06 19:51:19 +05:30
Aditya Bhatt 3cc733a887 * Import fonts/fonts.css into editor.css
* XHR fonts/fonts.css in editor.js, and parse it using some regexes to
get an array of font families.
2013-03-06 19:51:18 +05:30
Friedrich W. H. Kossebau bf3f5cf799 fix broken passing of documents for programs/editor/(cdn-)index.html 2013-02-14 17:32:09 +01:00
Aditya Bhatt c64a438000 rearrange code 2013-02-13 22:18:03 +05:30
Aditya Bhatt 698154f937 New translation mechanism document.translateContent(), look for elements with text-i18n='something'
attribute and translate those.
2013-02-13 21:39:44 +05:30
Friedrich W. H. Kossebau ad38127519 Rename memberid to localUserMemberId in editor.js 2013-02-11 18:04:22 +01:00
Friedrich W. H. Kossebau c430830d78 Gracefully remove cursor on page closing 2012-12-28 12:05:07 +01:00
Friedrich W. H. Kossebau 48ae2baecb Fix missing syntax error due to missing ) in editor.js 2012-12-28 12:05:07 +01:00
Friedrich W. H. Kossebau 55cdf4297d Remove topPane in programs/editor 2012-12-28 12:05:07 +01:00
Friedrich W. H. Kossebau 454ea3a07e Update editor.js with changes around sessionId, userdata fetching and edithighlighting disabling 2012-12-28 12:05:07 +01:00
Aditya Bhatt 01634286bc Linted everything in editor/ 2012-12-28 12:05:06 +01:00
Tobias Hintze f2667f043f cleanup, whitespace, and cosmetics 2012-12-03 16:56:04 +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
Aditya Bhatt 01ccbf791b use the new UserList in editor.js 2012-11-30 13:06:44 +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 0bcd694255 Allow #args , temporary hack 2012-11-16 19:31:59 +05:30
Aditya Bhatt 02590e514e endEditing when user closes window 2012-11-16 18:04:53 +05:30
Aditya Bhatt aa1b888640 Handle avatars properly in EditorSession.js and add startEditing and endEditing 2012-11-16 17:51:31 +05:30
Aditya Bhatt 2047e4c5a6 EditorSession as a controller between session and editor 2012-11-16 16:21:54 +05:30
Tobias Hintze bfcb3d8b8f programs/editor: re-enable offline-editing 2012-11-09 12:30:36 +01:00
Tobias Hintze 8ff251ec4e cosmetics 2012-11-09 12:29:41 +01:00
Tobias Hintze f1e7811ff4 make userid parameter of editor_init; default to "you" 2012-11-09 12:26:12 +01:00
Tobias Hintze eb43b6fb88 fix order of inits: UserModel, Replay, StartEditing 2012-11-09 12:26:05 +01:00
Friedrich W. H. Kossebau 0787d50b1e Add NowjsUserModel object (still needs to be filled with data from server)
for now serves same user data as TrivialUserModel
2012-11-09 12:25:52 +01:00
Tobias Hintze 5e23162a0b programs/editor: implement waiting for server-connection 2012-11-09 12:24:49 +01:00
Friedrich W. H. Kossebau 549dd93381 Turn setting the style of a paragraph into an operation (dirty initial hack) 2012-11-09 12:24:35 +01:00
Friedrich W. H. Kossebau 9985bb5a12 Fix paragraphstyle selector to only show named styles for a paragraph
Also use "___" as separator because the memberId is used directly in CSS
2012-11-09 12:23:12 +01:00
Tobias Hintze cf548d1225 jslint fixes 2012-11-09 12:21:35 +01:00
Tobias Hintze 46d4024b61 programs/editor: load a document on start 2012-11-09 12:21:33 +01:00
Tobias Hintze 82f6693230 implement ping/pong in NowjsOptionRouter (needs memberid!) 2012-11-09 12:21:29 +01:00
Tobias Hintze 81face95a2 just jslint fixes 2012-11-09 12:21:22 +01:00
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
Friedrich W. H. Kossebau 95dbc32c1d Sync programs/editors with changes in webodf/libs 2012-11-09 12:19:32 +01:00
Friedrich W. H. Kossebau 019ec7f5b1 move start of document loading the requirement chain, to ensure avatars and widgets are present on "statereadychange" 2012-10-31 14:13:20 +01:00
Friedrich W. H. Kossebau e0ce31e94a In editor_init() do a proper chaining of callbacks for required dojo compononts
Also set the content on the topPane at its creation
2012-10-30 11:52:38 +01:00
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
Tobias Hintze 22b155f103 editor: move creation of "changed"-event from html to editor.js 2012-10-22 10:25:54 +02:00
Tobias Hintze 008acd9935 programs/editor: change loading and init() 2012-10-21 22:55:04 +02:00
Tobias Hintze 375457d233 update license and copyright headers 2012-10-21 20:46:20 +02:00
Aditya Bhatt 58838bbd40 avoid race condition 2012-10-04 18:51:03 +05:30
Aditya Bhatt c11f0ffa5b add workaround comment 2012-10-04 18:04:35 +05:30
Aditya Bhatt 23352d5706 editable = false 2012-10-04 18:00:30 +05:30
Aditya Bhatt f2f9cc3bef add avatars to editor 2012-10-04 17:59:44 +05:30