898 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau a79eeac218 fix checking for NaN value 2015-03-16 13:21:27 +01:00
Friedrich W. H. Kossebau 8a764194e5 In the viewer allow to specify the page shown initially, by "startpage" 2015-03-15 21:37:49 +01:00
Friedrich W. H. Kossebau dd4ac7c323 Use "Wodo.TextEditor" as name in about dialog 2015-03-15 19:56:01 +01:00
Friedrich W. H. Kossebau 0434b5bda9 Fix Home key handler in viewerjs to use proper first page number 1, not 0 2015-03-14 01:13:49 +01:00
Friedrich W. H. Kossebau 5c2be268f5 Add French translation for the editor 2015-03-14 01:13:49 +01:00
Friedrich W. H. Kossebau b16f0d192d Compile Dojo translations for all supported languages 2015-03-13 22:37:17 +01:00
Friedrich W. H. Kossebau 5cbf30c382 Stop adding lots of debug comments to dojobundle.js & dojo-amalgamation.js 2015-03-13 22:36:34 +01:00
Friedrich W. H. Kossebau 0789a512a1 Remove unneeded translations 2015-03-13 21:24:24 +01:00
Friedrich W. H. Kossebau b751ba19c9 Viewer: Unset focus from UI buttons after a click 2015-03-13 21:24:03 +01:00
Friedrich W. H. Kossebau 05d584812e Remove unused getWidth/getHeight methods from ODFViewerPlugin 2015-03-13 14:16:27 +01:00
Friedrich W. H. Kossebau 91bebcf41a Remove broken duplicated older version of zoomSlider.setEditorSession
fixup for c749ca8927
2015-02-27 17:16:15 +01:00
Friedrich W. H. Kossebau 651004d393 Fix JSLint issues in programs/benchmark. 2015-02-23 23:18:20 +01:00
Friedrich W. H. Kossebau 153dd629dc Fix JSLint issues in docnosis 2015-02-23 17:31:37 +01:00
Friedrich W. H. Kossebau c749ca8927 Code cleanups in programs/editor for issues found with JSLint 2015-02-23 17:31:37 +01:00
Friedrich W. H. Kossebau 90f7dbdbb9 Add an optional "Save as" button to Wodo.TextEditor
saveas.png icon composed from Dijit icons,
thus with same license as Dijit icons
2015-02-18 22:50:04 +01:00
Friedrich W. H. Kossebau 63396508e0 Add an optional Download button to Wodo.TextEditor
Download as possible counterpart to Save, which could save to a server
2015-02-18 22:44:35 +01:00
Friedrich W. H. Kossebau e7f044910a Remove unused parameter noScroll 2015-02-13 17:44:50 +01:00
Friedrich W. H. Kossebau 3f0ebaf9d9 ViewerJS: Concentrate url parsing in PluginLoader.js, ask server for mimetype
no more document.location/window.location handling all over
index.html, PluginLoader.js and viewer.js

Allows to user viewer.js for other usecases where parameters are not
derived from document.location, but passed in by other ways
2015-02-12 14:39:47 +01:00
Friedrich W. H. Kossebau d10fd3fb07 Fix unclosed <meta> tag 2015-02-12 14:03:09 +01:00
Friedrich W. H. Kossebau a73cf2b706 Support setting initial zoom parameter by ViewerJS url 2015-02-12 14:03:09 +01:00
Friedrich W. H. Kossebau 7c65715e27 Fix ViewerJS/index.html not having charset definition in first 1024 bytes 2015-02-12 14:03:09 +01:00
Friedrich W. H. Kossebau 23bbfc2edc Fix wrong old signal name EVENT_MODIFIEDCHANGED
fixup for fa34a33037
2015-02-12 00:45:38 +01:00
Friedrich W. H. Kossebau e0395eaa97 Support zipping of all Wodo.CollabTextEditor files (without any backends) 2015-01-28 17:47:25 +01:00
Friedrich W. H. Kossebau 012f08c1a3 Block browser translation service from translating content (editor-only) 2015-01-27 15:26:35 +01:00
Friedrich W. H. Kossebau bf74d13999 Add short note about property "documentModified". 2015-01-17 19:34:54 +01:00
Friedrich W. H. Kossebau fa34a33037 Rename consistently property "modified" to "documentModified" 2015-01-17 19:34:54 +01:00
Friedrich W. H. Kossebau fb131de8f2 Change method name "set[Document]Unmodified" to "set[Document]Modified" 2015-01-17 19:34:54 +01:00
Friedrich W. H. Kossebau 2ff51f30a4 Extend UndoManager with a modified flag for a certain state 2015-01-17 19:34:54 +01:00
Jos van den Oever 5a12b603d5 Overwrite cordova-created config.xml by putting the WebODF in merges/ 2015-01-11 12:49:42 +01:00
Jos van den Oever fefe9b9b1f Add licenses to the new files. 2015-01-11 12:40:44 +01:00
Jos van den Oever b1384962da Only build apk if android executable was found. 2015-01-10 23:58:04 +01:00
Jos van den Oever a941ef56a2 Give the app for Firefox OS the same version number as WebODF. 2015-01-10 23:58:04 +01:00
Jos van den Oever 603e1a6ecc Make it possible to build the firefox and android package without the need for the requirements of the other. 2015-01-10 23:58:04 +01:00
Jos van den Oever cc46db7925 Use the zip code from WebODF since cordova can create invalid zip files. 2015-01-10 23:58:04 +01:00
Jos van den Oever 45fee81c8c Update the file list when scanning is done. 2015-01-10 23:58:04 +01:00
Jos van den Oever 544993ad04 Remove onload inline javascript: firefox marketplace does not allow it. 2015-01-10 23:58:04 +01:00
Jos van den Oever 424e32b8ba Move compile script out of the www/ folder. 2015-01-10 23:58:03 +01:00
Jos van den Oever 8fb6efa117 Move manifest.webapp into a firefoxos specific directory.
The contents of the platform specific directory in "merges" is merged in to "www" folder when building.
2015-01-10 23:58:03 +01:00
Jos van den Oever ff15b18478 Install cordova in the top level node_modules directory
instead of creating a separate node_modules folder in programs/cordova.
2015-01-10 23:58:03 +01:00
Jos van den Oever 719a30e979 Make app target naming consistent with other product targets.
Also do not build them by default.
2015-01-10 23:58:03 +01:00
Jos van den Oever 0c48bc1ba3 Add cordova app for viewing ODF files
This app works on firefox os and android. It will replace the android
app in programs/android.
The user interface has been rewritten and much simpler than the previous
one.
2015-01-10 23:58:03 +01:00
Jos van den Oever 0c0d014c28 Remove previous version of android app. 2015-01-10 23:58:03 +01:00
Friedrich W. H. Kossebau c29f77c29c Prevent editor toolbar being too small, at least for left-aligned elements
If there are only floating elements, the Dojo toolbar shrinks to 0 height.

To prevent this for left-aligned elements, do not set them as
float:left. (Also reorder generation to keep current tool ordering)

And for elements floating to the right, clear any floating for the toolbar element
with "clear:both" on the pseudo :after element.
2015-01-05 12:03:18 +01:00
Lukas Reschke 9d170f8fe1 Sanitize file-names
Otherwise a DOM-based XSS is possible.
2014-12-19 11:14:37 +01:00
Lukas Reschke 28c407940c Sanitize paragraph and font names 2014-12-02 15:45:18 +01:00
Lukas Reschke d2c5435693 Add "dojox/html" as dependency
"dojox/html/entities" will be used to sanitize the strings.
2014-12-02 15:29:58 +01:00
Friedrich W. H. Kossebau a68442d4e6 Remove duplicated code, linksInSelection is set later again 2014-09-24 17:12:59 +02:00
Friedrich W. H. Kossebau 3053b18ff3 Fix wrongly enabled hyperlink tools with no document loaded 2014-09-24 17:12:58 +02:00
Philip Peitsch 018448d792 Extract ODF field highlighting into standalone view
As per design discussed in issue #816. Extracting this into a separate
view makes it optional for consumers to use (or potentially further
customize).

Fixes #816.
2014-09-18 00:38:28 +10:00
Philip Peitsch b82360797c Change missed runtime.read hooks to override runtime.readFile instead
These hooks are all intended to override file loading within odf.Zip.
As of c2b4592, odf.Zip now uses runtime.readFile, these hooks all need
to be updated as well.
2014-09-17 22:01:59 +10:00