591 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau 4ed6c50705 Disable custom buttons save/saveAs/close/download when there is no session 2015-05-20 13:52:05 +02:00
Friedrich W. H. Kossebau b4854727b3 Remove unstablefeature flag from annotations in Wodo.CollabTextEditor 2015-05-06 18:39:15 +02:00
Friedrich W. H. Kossebau c428ec57f1 HowTo-Wodo.TextEditor: Tag all code snippets and files, also link sample files. 2015-04-02 17:26:49 +02:00
Friedrich W. H. Kossebau 486876e3a4 Add revieweditor samples to Wodo.TextEditor package 2015-04-02 17:26:48 +02:00
Friedrich W. H. Kossebau e9746b0732 Add "mode" flag to Wodo.TextEditor, to switch between review and full edit 2015-04-02 17:26:48 +02:00
Friedrich W. H. Kossebau 0d1077b205 Fix API generation for Wodo.TextEditor
fixup for c749ca8927
2015-04-02 17:25:54 +02: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 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 91bebcf41a Remove broken duplicated older version of zoomSlider.setEditorSession
fixup for c749ca8927
2015-02-27 17:16:15 +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 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
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 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
Philip Peitsch 4c63667037 Workaround for IE dropping the leading slash in pathnames
Various versions of Internet Explorer seems to neglect the leading slash
under some conditions (not when watching it with the dev tools of
course!). This was confirmed in IE10 + IE11

Fixes #809.
2014-09-16 19:52:40 +10:00
Philip Peitsch bb56bc684c Convert odf.OdfUtils into a static singleton 2014-09-12 10:33:27 +10:00
Philip Peitsch 3172ad8dec Convert core.DomUtils into a static singleton 2014-09-12 10:17:09 +10:00
Philip Peitsch 0c3e7034fc Remove now-unused runtime.getFileSize function 2014-09-11 15:03:43 +10:00
Philip Peitsch 741ea56a17 Add event subscription tracking object to simplify per-frame subscriptions
A common use-case for UI components is to only update the UI state just
before the next frame is rendered, irrespective of how many times a
signal is fired within a given batch of operations.

The event subscriptions object allows these to be easily created and
tracked, and also makes it easier to ensure all subscriptions are cleaned
up at the end.
2014-09-11 12:00:07 +10:00
Philip Peitsch 05d99e8d9e Avoid enabling remove hyperlink button if hyperlinks feature is disabled 2014-09-11 12:00:07 +10:00
Philip Peitsch daff6484cf Enabled direct text styling only if current selection is a text range
Prevents the controller advertising things such as bold and underline
are valid operations for an inline image (they are not!).
2014-09-11 12:00:06 +10:00
Friedrich W. H. Kossebau cb3ffe4f30 Revert "Expose setTemplate/isTemplate in Wodo.TextEditor API"
This reverts commit 681de3526e.
2014-09-03 13:20:12 +02:00
Friedrich W. H. Kossebau 6a9e61acd3 Revert "Make Wodo demo/testing code properly handle template documents"
This reverts commit 49803f61cb.
2014-09-03 13:20:12 +02:00
Friedrich W. H. Kossebau 00baedc2ea Small README wording improvement 2014-08-21 18:02:08 +02:00
Friedrich W. H. Kossebau e4ade02214 Remove backend parameter from pullboxeditor.js (there is only pullbox) 2014-08-21 18:02:08 +02:00
Friedrich W. H. Kossebau 72453c5784 rename server/ to backends/ 2014-08-21 16:49:46 +02:00
Friedrich W. H. Kossebau 49803f61cb Make Wodo demo/testing code properly handle template documents 2014-08-15 11:48:20 +02:00
Friedrich W. H. Kossebau 681de3526e Expose setTemplate/isTemplate in Wodo.TextEditor API 2014-08-15 11:48:19 +02:00
Satvik Kumar b02b461e60 Remove style element functions from OdtDocument
Removed getStyleElement, getParagraphStyleElement and
getParagraphStyleAttributes from OdtDocument as these functions simply
redirect to their implementations in odf.Formatting.
2014-08-13 23:20:15 +10:00
Satvik Kumar a714866c52 Removed getParagraphElement from OdtDocument
This function only redirected to the OdfUtils version and many callers
already had an existing instance of OdfUtils to use. Any callers who did
not have an instance of OdfUtils now create one to continue using the
function.
2014-08-13 23:15:50 +10:00
Satvik Kumar 865541a3ed Use core.StepsDirection enum for rounding direction
The rounding direction constants in OdtStepsTranslator overlap with the
existing enum in core.StepsDirection. It makes sense to use that enum here
to specify rounding behaviour in converting DOM points to steps so the
constants have been removed and the enum has been substituted for all
usages.
2014-08-07 23:53:05 +10:00
Satvik Kumar 482e98da74 Remove rounding predicate from step conversion
This removes the option to provide a rounding predicate to decide whether
to round up or down from the convertDomPointToCursorStep method. It is replaced
with an enum that specifies whether to round up or down. The predicate was
removed as all callers supplied the same function to indicate they wanted
round up behaviour and this predicate was being duplicated.

The rounding parameter is optional and defaults to rounding down to the
previous step which is the same as before this commit.
2014-08-07 23:07:57 +10:00
Friedrich W. H. Kossebau 0e3b468ad5 Dump //@ sourceURL= variant, use just //# sourceURL=
For some versions of firefox and chromium they support //# now,
and on debugging all the deprecated warnings at least with firefox
are annoying
2014-08-07 11:19:43 +02:00
Friedrich W. H. Kossebau 2f7d3530b2 Add targets test-* and build-* for each product-* target 2014-08-06 12:58:15 +02:00
Philip Peitsch c845342406 Extract viewport management logic into standalone system
Simplifies the caret class, and allows more exotic view configurations
to be inserted without breaking core code.

As a bonus, the new Viewport class is able to scroll arbitrary
rectangles into view.
2014-08-05 21:26:27 +10:00