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
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
1f894d0691
Remove lots of whitespace
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
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
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
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
bb2ed71042
Remove unused var
2013-02-13 21:47:30 +05:30
Aditya Bhatt
dfdbfdc86b
Use Lorem Ipsum for preview text so we don't have to translate that
2013-02-13 21:39:44 +05:30
Aditya Bhatt
cf2c7c1ae1
Translate all the things
2013-02-13 21:39:44 +05:30
Aditya Bhatt
c6e9e90891
Set attribute value from 'justified' to 'justify'
2013-02-11 15:24:19 +05:30
Aditya Bhatt
aeaf1c70f4
Refresh the dialog's selected style in the dialog every time this is
...
opened; this way the deletability is updated
2013-02-11 14:29:30 +05:30
Aditya Bhatt
b9a61c9a31
Handle button visibility based on style deletability
2013-02-11 14:29:30 +05:30
Aditya Bhatt
f065a7aaf0
Check for a style's usage in styles, automatic-styles, and body
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
c0cb57dd0c
Restore the previously selected style after refreshing the list, in the
...
generic paragraph styles selector
2013-02-02 01:11:24 +05:30
Aditya Bhatt
1840420b3e
Switch to the newly created style in the dialog after cloning
2013-02-02 00:46:32 +05:30
Aditya Bhatt
0da4c9e1b4
Clear and close the popup tooltip after pressing 'Create'
2013-02-02 00:45:59 +05:30
Aditya Bhatt
8acb6c90f9
Make all paragraph style selectors auto-update when styles are changed
...
in the document
2013-02-02 00:23:01 +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
fd5f717220
Add a clone dropdown button with a little form for the new style name,
...
and a delete button. Two empty methods for cloning and deletion
2013-02-01 21:22:48 +05:30
Aditya Bhatt
82b07e672d
Revert "Add a new widget, paragraphStylesModifiable.js, which shall be the"
...
This reverts commit ad05e95381 .
2013-02-01 19:44:01 +05:30
Aditya Bhatt
ad05e95381
Add a new widget, paragraphStylesModifiable.js, which shall be the
...
original paragraphStyles dropdown, but with buttons to clone and delete
styles. Start using this widget in the dialog.
2013-01-31 18:48:00 +05:30
Aditya Bhatt
5df98795aa
We already have a form var, no need to use dijit.byId
2013-01-30 23:20:51 +05:30
Aditya Bhatt
6121075d54
Make dialog panes follow the style selected in the dialog
2013-01-30 23:11:45 +05:30
Aditya Bhatt
299ec3e2bf
Modify the style in the document that is currently selected *in* the
...
dialog
2013-01-30 23:05:27 +05:30
Aditya Bhatt
5a4680da5c
typo
2013-01-30 23:04:20 +05:30
Aditya Bhatt
891260af5f
Add .value() methods to both panes
2013-01-30 22:59:37 +05:30
Aditya Bhatt
9f87626968
Extend both dialog panes to allow for extra methods to be attached; the
...
dijit widget is now accessed as pane.widget()
2013-01-30 22:46:10 +05:30
Aditya Bhatt
7d299b717a
Remove namespace declarations from dialog panes
2013-01-30 21:08:00 +05:30
Aditya Bhatt
2cbc70e117
Make the dialog scrollbar go away, adjust sizes
2013-01-30 21:00:24 +05:30
Aditya Bhatt
bd14deb810
Add an inert paragraphStyles selector widget above the tabContainer in
...
the styles dialog
2013-01-30 19:51:54 +05:30
Aditya Bhatt
429f86aa2d
Add a toolbarWidgets/ directory and add currentStyle.js to it, a widget
...
that uses internally the paragraphStyles widget and also keeps track of
current paragraph and allows setting the current paragraph's style
2013-01-30 19:16:52 +05:30