Aditya Bhatt
8b8839ee81
Add html restructuring to index.html too
2013-03-18 18:35:15 +05:30
Aditya Bhatt
163a442bbb
Some styling changes - check for the availability of window.inviteProxy
...
to show the invite button, and use a custom button instead of a dojo
button because we need a bit more flexibility
2013-03-18 18:12:35 +05:30
Aditya Bhatt
dcef6bf1a5
Partially refactor the avatar button updating code so that there is only
...
one code path for updating. + some styling
2013-03-16 08:03:31 +05:30
Aditya Bhatt
252d6da87f
Remove the chat sidebar and the ExpandoPane, and have a clean sidebar of
...
avatar buttons to the right. Also some aesthetics styling.
2013-03-16 07:43:19 +05:30
Aditya Bhatt
6eb6762ce9
Make the container + canvas layout in programs/editor similar to the one
...
in programs/viewer, so now we don't have to deal with a hackish hidden
horizontal scrollbar, and both scrollbars follow the zoom level
perfectly.
2013-03-16 01:44:16 +05:30
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
145fb492a0
Also copy programs/editor/fonts into build directory
2013-03-14 11:35: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
Friedrich W. H. Kossebau
78ae8f19af
Remove unused EditorSession.getDocument
2013-03-12 11:57:59 +01:00
Friedrich W. H. Kossebau
70a21685a0
Sync scope of vars sessionId & userId in getin.js
2013-03-11 18:25:38 +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
0b0f9160aa
Avoid a little race condition by moving the onchange handler for
...
stylePicker inside the creation of ParagraphStyles
2013-03-06 19:51:19 +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
1f894d0691
Remove lots of 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
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
0af89d2d2a
Add an empty fonts/fonts.css file, to be filled with @font-face
...
declarations in a real-world implementation
2013-03-06 19:51:19 +05:30
Aditya Bhatt
0fa56a7dc9
Remove forced smallish width of fontpicker
2013-03-06 19:51:19 +05:30
Aditya Bhatt
5f4f38be35
Move onAdd and onRemove to inside the stylePicker initialization so we
...
don't get race exceptions
2013-03-06 19:51:19 +05:30
Aditya Bhatt
3c062a76cd
* A new widget, fontPicker.js, made in a similar way to
...
paragraphStyles.js.
* Remove old declarative 'placeholder' font selector from
fontEffectsPane.html, and attach programmatically the new fontPicker in
it's place. Rename fontFamily to fontName, since we are actually dealing
with font-names here when we work with styles.
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
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
e1a4c6d02b
Add German translation for new strings
2013-03-05 22:34:32 +01:00
Aditya Bhatt
bc984d41ec
add explanatory comment to dialog.onShow
2013-02-22 13:12:10 +05:30
Aditya Bhatt
be776e62b7
Open current paragraph's style when the dialog is opened.
2013-02-22 12:01:16 +05:30
Aditya Bhatt
546b26d3d0
Add @constructor annotation as discussed in RR #35 .
2013-02-20 13:35:47 +05:30
Aditya Bhatt
b761e267ee
Only hide focus outline inside editor
2013-02-20 13:35:47 +05:30
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
0b4169a6b7
Remove annoying focus outline
2013-02-20 13:35:47 +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
fd33940f2d
Make underline checkbox work properly
2013-02-20 13:35:47 +05:30
Aditya Bhatt
3c1ce46dac
Add strikethrough support to the style modifier and restore the button
...
in simpleStyles.
Also add special CSS handling for it in Style2CSS
2013-02-20 13:35:47 +05:30
Aditya Bhatt
e15e8ef80d
Make B I U buttons work, and remove the strikethrough button for now
2013-02-20 13:35:47 +05:30
Aditya Bhatt
3aa8f17ce8
Fix underline attribute naem
2013-02-20 13:35:47 +05:30
Aditya Bhatt
38b2dabe91
Use a more proper property name - textAlign instead of alignment
2013-02-18 20:12:55 +05:30
Aditya Bhatt
d0a9ec117c
Don't use an array for BIU, use proper key-val
2013-02-18 20:12:31 +05:30
Aditya Bhatt
8f78151c8c
Swap wrong label / value assignment
2013-02-18 14:41:31 +05:30
Aditya Bhatt
76e92cee18
Add onAdd and onRemove 'events' to the paragraphStyles widget
2013-02-18 14:41:31 +05:30
Aditya Bhatt
1435d44c3e
Add getValue method to paragraphStyles and use the new class in the
...
dialog
2013-02-18 14:41:31 +05:30
Aditya Bhatt
85a21624c7
Refactor paragraphStyles to be able to have custom methods, and use it
...
in currentStyle
2013-02-18 14:41:31 +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
Friedrich W. H. Kossebau
bf3f5cf799
fix broken passing of documents for programs/editor/(cdn-)index.html
2013-02-14 17:32:09 +01:00