62 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau c749ca8927 Code cleanups in programs/editor for issues found with JSLint 2015-02-23 17:31:37 +01:00
Philip Peitsch 7fd4c040dc Split screen editing app
Creates two editor instances within a single web-page, and allows live
collaboration between them.

Key features:
* EASY TO USE (requires no additional setup to run)
* supports client disconnection
* simplistic latency simulation
2014-07-24 23:26:15 +10:00
Philip Peitsch 83adef477c Allow multiple instances of the editor to be created in a single page
Mangle HTML ids in a predictable fashion in dialog widgets to ensure they
do not clash if multiple instances are loaded.
2014-07-24 12:53:06 +10:00
Philip Peitsch 6e87083a20 Use the current hyperlink as a placeholder for the display text
This helps clarify that if no display text is specified, the link text
will be used instead.
2014-06-20 23:06:35 +10:00
Friedrich W. H. Kossebau 7f80e8e163 Normalize license headers of editor/benchmark/tests/firefox-addon/viewer source files
* remove @license tag, for consistency with library source files
* use copyright@kogmbh.com email address everywhere
* remove "additional permission", to be added only to released stuff
* separate license header by empty line from following content
2014-06-02 17:49:46 +02:00
Philip Peitsch 82d1d7cd85 Cope with non-cm image dimensions
Style-related operations are slowly being moved towards px as the
default unit to improve consistency. Standardising getContentSize to
work in px rather than cm provides better re-use of CSSUnits as well.
2014-03-27 22:57:44 +11:00
Friedrich W. H. Kossebau dd6f6fa2eb Fix file headers missing AGPL copy note & @source not yet pointing to github 2014-02-12 15:58:15 +01:00
Aditya Bhatt 5f056eb079 Fix hyperlink UI translations for english. 2013-12-17 13:19:47 +01:00
Friedrich W. H. Kossebau 60626b01dc Fix widget js files to only call runtime.loadClass(...) in the setup method, not at definition time 2013-12-16 23:52:59 +01:00
lli 353b4b68f1 Added editor buttons for applying or deleting hyperlinks 2013-12-13 17:40:22 +11:00
Aditya Bhatt 6a4f0e69ab Add translations support to runtime.js,
and programs/editor/Translator.js which is a reference
implementations of a translator.
The programs/editor/Translator code is used entirely in
localeditor.js/collabeditor.js and the editor itself, or webodf,
and need not know anything about the translation mechanism.

Translate all strings within the editor and all
user-facing strings in webodf core itself using
runtime.tr();
2013-11-05 18:38:41 +01:00
Friedrich W. H. Kossebau c2a795e668 Update link to repo: now https://github.com/kogmbh/WebODF/ 2013-10-23 18:20:30 +02:00
Friedrich W. H. Kossebau 508570dab8 Add copy of the AGPL3 to sources (+ add to created zip files) 2013-10-21 17:55:16 +02:00
Friedrich W. H. Kossebau 479ecd79f8 Turn widgets.js into Tools.js, make tools work without a editorSession object set 2013-09-03 01:02:47 +02:00
Aditya Bhatt d543584eea whitespace 2013-03-26 13:46:25 +05:30
Aditya Bhatt aa02bf59c6 Need to enclose the dropdownbutton text span within a span, because dojo
restructures the html upto the first descendant span
2013-03-26 13:46:25 +05:30
Aditya Bhatt eacdba133c Fix wrong alignment when strings are too long 2013-03-26 13:46:25 +05:30
Aditya Bhatt df17d620c7 Add a getFamily method to fontPicker, which retrieves the family for a
font with a given name. Use this in the font pane so that we can see
previews for fonts.
2013-03-25 15:52:57 +05:30
Tobias Hintze 7a9e7c50c7 whitespaces 2013-03-20 22:26:01 +01:00
Tobias Hintze e97953f6f1 programs/editor/widgets: make two panes work in a subdir as well 2013-03-20 20:47:03 +01:00
Aditya Bhatt 1f894d0691 Remove lots of whitespace 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 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 fd33940f2d Make underline checkbox work properly 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 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 5df98795aa We already have a form var, no need to use dijit.byId 2013-01-30 23:20:51 +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 d193d58389 Add text and background color modification 2013-01-23 04:22:45 +05:30
Aditya Bhatt 81787baa60 Add a preliminary CSS units converter and use it to convert everything
to millimetres
2013-01-22 20:42:21 +05:30
Aditya Bhatt d47161e571 Use style attributes directly from the attributes map 2013-01-22 15:31:35 +05:30
Friedrich W. H. Kossebau dbb791486e getAttributeNS can return null in some browsers, so check the result for that
https://developer.mozilla.org/en-US/docs/DOM/element.getAttributeNS#Notes
2012-12-28 12:05:07 +01:00
Aditya Bhatt e186836434 Prefix with namespaces 2012-12-28 12:05:06 +01:00
Aditya Bhatt 3e61ec968a Don't use UI-specific properties in operations. remove 'Radio' from
properties
2012-12-28 12:05:06 +01:00
Aditya Bhatt 63e3e84496 Remove log 2012-12-28 12:05:06 +01:00
Aditya Bhatt bdebe10662 Lint 2012-12-28 12:05:06 +01:00
Aditya Bhatt b18bf1226a Lint 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
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 8b3e632afd Use dojo form instead of HTML forms 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 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