Aditya Bhatt
2fa9df09f7
Move style loading of fonts from editor.css to js
2013-03-20 15:11:46 +05:30
Aditya Bhatt
a1c0c28866
Move fonts/fonts.css to a resources/ dir, and update the paths
...
dojoConfig paths accordingly to resolve pathes starting with
'resources/'.
2013-03-20 15:11:46 +05:30
Friedrich W. H. Kossebau
51af6f6140
Ensure that style name (id, not the display name) is properly encoded and unique
2013-03-19 10:35:41 +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
Friedrich W. H. Kossebau
78ae8f19af
Remove unused EditorSession.getDocument
2013-03-12 11:57:59 +01:00
Friedrich W. H. Kossebau
4942a201bf
rename opfDocument to odtDocument in EditorSession
2013-03-06 20:44:40 +01:00
Friedrich W. H. Kossebau
6a568a8f58
Split ops.OdtCursor from core.Cursor & rename ops.Document to ops.OdtDocument
...
Also:
* rename gui.CaretTests to ops.OdtCursorTests (as it is testing ops.OdtCursor)
* remove test-less CaretTests.js, had broken setup now
2013-03-06 15:44:28 +01:00
Aditya Bhatt
261a530a0a
Use better regex matching
2013-03-06 19:51:20 +05:30
Aditya Bhatt
91849f78b1
Return empty array, avoid fontpicker exception
2013-03-06 19:51:20 +05:30
Aditya Bhatt
48fa116ff8
Use dojo's AMD loader for fonts css, avoid manual XHRing and race
...
problems
2013-03-06 19:51:20 +05:30
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
b03066b7e5
Remove whitespace
2013-03-06 19:51:19 +05:30
Aditya Bhatt
fc3f08c1da
How did this file get deleted???? Adding back
2013-03-06 19:51:19 +05:30
Aditya Bhatt
3d74878cd1
* getUsedFonts -> getDeclaredFonts renaming.
...
* documentation
2013-03-06 19:51:19 +05:30
Aditya Bhatt
7ef88fc872
Retrieve the font face declarations map from Style2CSS in Formatting.js.
...
Expose this map to EditorSession, and add a getUsedFonts method to
EditorSession that removes number-suffixed duplicate font-names like
Arial1, Arial2, etc and returns a reduced font name-to-family map.
2013-03-06 19:51:18 +05:30
Aditya Bhatt
8f526248f3
Add a signalParagraphStyleModified, and make the BIUS buttons listen to
...
it so that they are updated when a dialog changes the current style's properties
2013-02-20 13:35:47 +05:30
Aditya Bhatt
46f89dbe6f
Use a bit more specific signals for styleChanged and styleDeleted. Make
...
the paragraphStyles selector dynamically add/remove styles instead of
reloading everytime. Pass style name in signal argument.
2013-02-18 14:41:31 +05:30
Aditya Bhatt
3307555380
Make cursor move to the beginning of the first text node upon addition.
...
Also, track a cursor in the editor upone addition, so that we know it's
paragraph style and various such info.
2013-02-18 14:41:31 +05:30
Aditya Bhatt
3f1b552ddf
Some jsdoc for EditorSession
2013-02-11 14:29:30 +05:30
Aditya Bhatt
8a7e9ad586
Use OpDeleteStyle in editor
2013-02-11 14:29:30 +05:30
Aditya Bhatt
694def8fb3
Add a method hasDerivedStyles to StyleInfo.js, and use a method
...
isStyleUsed to Formatting.js and EditorSession, and test it in the
styles dialog when a new style is picked
2013-02-11 14:29:30 +05:30
Aditya Bhatt
f6e2edcdd4
Add style change signals
2013-02-01 23:57:31 +05:30
Aditya Bhatt
8d26c25dde
Add a new operation, OpCloneStyle.js, and use it in the editor
2013-02-01 23:30:53 +05:30
Aditya Bhatt
3cdf580200
Add wrapper method for getParagraphStyleAttributes to EditorSession
2013-01-22 15:31:14 +05:30
Friedrich W. H. Kossebau
fa9504bb73
Adapt UserList view to usermodel now signalling userdata changes
...
(and remove unneeded parameters from internal methods)
2012-12-28 12:05:07 +01:00
Aditya Bhatt
01634286bc
Linted everything in editor/
2012-12-28 12:05:06 +01:00
Aditya Bhatt
5333f98f99
Bind dialog to paragraph style, updates on changes to the style
...
Conflicts:
programs/editor/widgets/paragraphStylesDialog.js
2012-12-28 12:05:06 +01:00
Aditya Bhatt
847114c271
Some changes to get accessing of paragraph styles by the dialog working
...
Conflicts:
programs/editor/CMakeLists.txt
programs/editor/index.html
programs/editor/widgets/dialogWidgets/alignmentPane.js
programs/editor/widgets/paragraphStylesDialog.js
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
98e72a0e77
Add method to retrieve odfDocument
2012-11-30 13:07:05 +01:00
Aditya Bhatt
81fa5d47be
New Editor API - add subscriptions for various signals. EditorSession.js is now supposed to only expose information about the editor instance's own User instead of all others. Signals generated by other users are filtered out before forwarding signals to any subscribers in the editor. Introduce Users instead of 'avatars'. Add several methods for tracking cursor and paragraph styles for our own user, which can be used by other widgets in the Editor.
2012-11-30 13:06:15 +01:00
Aditya Bhatt
c3d18fd4c3
Lint
2012-11-30 13:05:54 +01:00
Aditya Bhatt
aa1b888640
Handle avatars properly in EditorSession.js and add startEditing and endEditing
2012-11-16 17:51:31 +05:30
Aditya Bhatt
c858fae99c
EditorSession as a controller between session and editor
2012-11-16 16:21:41 +05:30