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.
Text-to-speech and screen readers use the browser's selection to determine
what the current selected text is. Some browsers (e.g., Safari on OSX) think
the text content of the event trap is the currently selected content, and
only vocalise the letter "b".
Cope with this by serialising the currently selected text to the input
field on redraw. On a 1000 page text-only document, this can add sizeable
performance impact (400ms to execute synchronizeWindowSelection), but
as this only occurs when the cursor is updated, and only once per redraw,
the actual end user impact is reasonably minimal.
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
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
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.
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.
contain text.
This divides the `isEnabled` information of DirectFormattingController
into two parts, `directTextStyling` and `directParagraphStyling`.
The widgets are accordingly updated.
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.
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.