Friedrich W. H. Kossebau
41f8b18ac6
Make sure all toolbar elements are disabled without a session
...
(and merge any require calls into one per class definition)
2014-07-10 18:19:11 +02:00
Friedrich W. H. Kossebau
494fac1f46
Do not copy the whole dijit/themes dir, only what is needed (claro)
2014-07-10 18:02:20 +02:00
Friedrich W. H. Kossebau
c98a4c64ec
Fix creation of some dojo dirs
...
Copy & paste error, before was accidently creating the source dir
of the dir copy in the next line, not the target dir
Possibly is not needed at all, given that it worked before, but then places
before also do the same, so let's be consistent, those calls do not hurt
2014-07-10 18:02:20 +02:00
Jos van den Oever
dcc24c0e2c
Remove the use of onload in <link/> element.
...
The handler onload on <link/> does not work on the default browser on android 4.0.3.
2014-07-05 02:06:55 +02:00
Friedrich W. H. Kossebau
0c0619e257
cleanup code for document.currentScript workaround
2014-07-05 00:49:53 +02:00
Friedrich W. H. Kossebau
18fe94c7b2
add fallback if document.currentScript is not available (e.g. with Webkitties)
2014-07-03 23:20:50 +02:00
Friedrich W. H. Kossebau
b50e9e222c
Add API dox in JsDoc style for the options to Wodo.createTextEditor
2014-06-24 23:01:41 +02:00
Friedrich W. H. Kossebau
5fbb9a13ad
Use wodotexteditor.js from sources to create API dox
...
avoids the dox' symbol source file to have full path of build dir
2014-06-24 21:19:26 +02:00
Friedrich W. H. Kossebau
f5f87f240c
Do not yet add revieweditor.html to wodotexteditor zip
2014-06-24 19:59:05 +02:00
Friedrich W. H. Kossebau
b22bc05584
Fix undefined id set explicitely for toolbar container element in collab editor
2014-06-24 19:58:19 +02:00
Friedrich W. H. Kossebau
f779cee2f6
Use an unversioned directory to collect the files for wodotexteditor zip
...
(helps testing as the url to browse to in the build dir does not change all the time)
2014-06-24 15:36:24 +02:00
Friedrich W. H. Kossebau
0668abe0e2
install wodo.texteditor code files separated in zip subdir wodotexteditor/
...
also no longer install wodo.texteditor-only ones in programs/editor
2014-06-24 15:36:24 +02:00
Friedrich W. H. Kossebau
753c394789
Make Java a required dependency
...
webodf.js needs it for closure compiler, and there is not much in the repo
which really makes sense to build without also building webodf.js
2014-06-24 01:10:13 +02:00
Aditya Bhatt
e22583aad2
Mark direct paragraph styling as a stable feature
2014-06-22 03:28:18 +02:00
Friedrich W. H. Kossebau
25f74a2d77
Create API dox for Wodo.TextEditor
2014-06-20 17:47:54 +02:00
Friedrich W. H. Kossebau
c168a161b3
Add README.md to programs/editor
2014-06-20 17:47:54 +02:00
Friedrich W. H. Kossebau
89f344e23f
Add HOWTO-wodotexteditor.md
2014-06-20 17:47:54 +02:00
Friedrich W. H. Kossebau
a3bab52b67
add product wodotexteditor
2014-06-20 17:47:54 +02:00
Friedrich W. H. Kossebau
e593e424b2
move fullscreen pinch-zoom into own class FullWindowZoomHelper
2014-06-20 17:47:54 +02:00
Friedrich W. H. Kossebau
f57b350c55
Split Editor into Wodo.Texteditor and Wodo.CollabTexteditor
2014-06-20 17:47:54 +02: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
Philip Peitsch
010dca4f88
Expand selection to cover newly inserted hyperlink
...
Mimicking LibreOffice's behaviour here, when a new link + associated
display text is inserted, immediately expand the selection to these
bounds.
This change makes add & edit link behaviours consistent, as the complete
hyperlink is always selected after the edit dialog is closed.
2014-06-20 22:22:40 +10:00
Philip Peitsch
41f1491ffc
Select and update the current hyperlink when selection is collapsed
...
When the current selection is collapsed within a hyperlink and an update
occurs, the selection will now be expanded to the hyperlink bounds and
updated.
Fixes #490 .
2014-06-20 22:22:39 +10:00
Philip Peitsch
32855365b0
Only calculate hyperlink text just prior to displaying edit dialog
...
Calculating hyperlink text is extremely expensive. To avoid a lot of
unnecessary work, only calculate the text prior to displaying the edit
dialog.
2014-06-20 22:22:39 +10:00
Philip Peitsch
1edc07bbc4
Re-arrange editorHyperlinks widget code
2014-06-20 22:22:38 +10:00
Philip Peitsch
575fb64ffc
Show complete hyperlink text when selection is collapsed
2014-06-20 22:22:38 +10:00
Aditya Bhatt
ba180c73b7
Rename isEnabled to enabledFeatures inside DirectFormattingController.
2014-06-18 14:00:37 +02:00
Aditya Bhatt
3d1234aa71
Generate and cache style summary for selections that do not
...
contain text.
This divides the `isEnabled` information of DirectFormattingController
into two parts, `directTextStyling` and `directParagraphStyling`.
The widgets are accordingly updated.
2014-06-18 13:55:49 +02:00
Friedrich W. H. Kossebau
78a47e0588
Fix hyperlink editor to no longer extract non-odf text for the display text
2014-06-13 11:44:07 +02:00
Friedrich W. H. Kossebau
9d52a5cfec
Fix font picker in Editor wrongly keeping fonts of old documents
2014-06-12 13:53:16 +02:00
Friedrich W. H. Kossebau
12b4e27ef0
Remove option to configure the member id in local edit mode
2014-06-10 13:11:24 +02:00
Friedrich W. H. Kossebau
a4889715bb
Add SessionBackend abstraction
...
hides away any assumptions about server class structures from the Editor class
2014-06-10 13:11:24 +02:00
Aditya Bhatt
dec35286ed
Make review mode a collab-unstable feature, and always
...
enable annotations if it is enabled.
2014-06-06 16:55:53 +02:00
Aditya Bhatt
ed863dcb51
Change widgets that access controllers to cleanly
...
unsubscribe and subscribe to signals.
2014-06-06 15:11:32 +02:00
Aditya Bhatt
c165702542
Add a const gui.CommonConstraints, which lists
...
the common constraints that come with and are
respected by WebODF.
Use these constraints in all previous occurrences.
2014-06-06 15:11:32 +02:00
Aditya Bhatt
033bda34a8
Hide annotation removal buttons of other authors
...
when the edit.annotations.onlyDeleteOwn constraint
is enabled.
2014-06-06 15:11:32 +02:00
Aditya Bhatt
98e101ff98
Rename imageInsertingEnabled to imageEditingEnabled
2014-06-06 15:11:32 +02:00
Aditya Bhatt
6b97b318d4
Add review editor to programs/editor
2014-06-06 15:11:32 +02:00
Aditya Bhatt
b02e11f1cc
Make image insertion respect review mode constraints.
2014-06-06 15:11:31 +02:00
Aditya Bhatt
052a3cf04a
Move image insertion code from EditorSession to ImageInserter.
...
This allows access to controllers directly in the widget, as is
the convention.
2014-06-06 15:11:31 +02:00
Aditya Bhatt
58cbeabf19
Make hyperlink editing respect review mode constraints.
2014-06-06 15:11:31 +02:00
Aditya Bhatt
1467ea6d2a
Introduce "Review Mode".
...
Let DirectFormattingController obey this "edit.reviewMode"
constraint by not creating any operations or processing any
action to format text when the cursor is not within the local
user's annotation.
Signals are exposed to toolbar widgets so they may
enable/disable themselves on the fly depending on the cursor
context.
2014-06-06 15:11:29 +02:00
Aditya Bhatt
51ee5624c4
Add a constraint to disallow deleting others' annotations.
...
This introduces SessionConstraints into SessionController
and AnnotationController. The latter comes with a new
permission, namely "edit.annotations.onlyDeleteOwn".
Code is added into AnnotationController to check
for the author name of the annotation node to be deleted,
and do nothing if it matches the name of the current
user.
2014-06-06 14:30:44 +02:00
Aditya Bhatt
7c98fbaa8a
Do not disable paragraph alignment buttons on image selection.
2014-06-05 14:20:19 +02:00
Friedrich W. H. Kossebau
8c350e927b
Add license header also to all CSS and big test data xml files
2014-06-03 12:37:12 +02: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
Friedrich W. H. Kossebau
5e3d2d708f
Add gui.MetadataController
2014-05-27 15:03:53 +02:00
Friedrich W. H. Kossebau
c05c4220f4
deduplicate tool creation code in Tools
2014-05-27 14:35:01 +02:00
Friedrich W. H. Kossebau
b91a97c21f
add flags to enable/disable all editor (toolbar) action sets
2014-05-27 13:42:28 +02:00
Friedrich W. H. Kossebau
0d47fb69c8
Return only operation specs as transformation result, not operation objects
2014-05-21 11:16:37 +02:00