We can't let the normal UIResponder and UITextView mechanism try to
handle the clipboard (well, "pasteboard" is what it is called on iOS
and macOS) commands as the UITextView has no idea about the *real*
document being edited. The paste command in theory might work, but
best to let LibreOffice core handle that, too.
Change-Id: Id130708ceb5718660af26367538a17a14238843b
We don't have any such messages permanently in the code anyway, so we
don't win anything by doing it through the LOOL loggin mechanism at
level "trace".
Change-Id: I2c18e1cd561f797d2c4c20b403d5faedce695062
In an upcoming change, CollaboraOnlineWebViewKeyboardManager will
start producing that. That seems to be one (the only?) way to get
Cmd-C, Cmd-X, etc working again.
Change-Id: I79d6d89426048d7539769c5eb85914cfddbe8807
Added translation using Weblate (Norwegian Bokmål)
Translated using Weblate (Norwegian Bokmål)
Currently translated at 98.8% (344 of 348 strings)
Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nb_NO/
When image is copied in the browser we have two mimetypes
in the clipboard: text/html and file with image.
If html contains only img then use image file because
in Calc and Impress html pasting will result in pasting
as a text without images (Writer uses better HTML reader).
Change-Id: If2962476cdc6c8d75d23bacbf31bfaf519394aed
In the old code, if the evaluation first allocates the memory for the
raw pointer, then calls firstLine() and an exception is thrown before
the std::unique_ptr construction, then the memory is leaked. Using
make_unique() has the benefit of avoiding this problem.
Convert only a single usage, so the remaining places can be done as easy
hacks.
Change-Id: Iaf3d8051a8a0627a57fdf1196bde7d5f8612fcff
Web based, containrized, ready-to-use dev environment & IDE.
https://gitpod.io
Open in GitPod: https://gitpod.io/#https://github.com/CollaboraOnline/online
* You will have the environment, but you might need to
run the build commands yourselves
Force to prebuild: https://gitpod.io/#prebuild/https://github.com/CollaboraOnline/online
* This should come at the point make command stage is completed
We will also enable auto-prebuilds on each push,
and add a button to get a prebuilt/ready env
TODO:
* Open port(s) to be able to connect to COOL while running
* Add missing VSCode extensions if any
* Enable prebuilds for push events
* Add button on README
Change-Id: I726a7fb0693cd39109c88b86b3d6941e0210c249
URIs may or may not have authorization data specified
via access_header or access_token query parameters.
In the event that the host doesn't have such needs
(for example authrorization could be performed by
some other means), we should accept the request
and still go ahead and make the WOPI request
all the same.
This patch effectively reverts the changes from
a019c93d90 which threw
an exception when the authorization method was
undefined. Since there was an assertion to warn
programmers that something is amis, now we simply
log the fact in trace mode and move on.
A new unit-test is added and another one that
expected the now-removed exception has been modified.
Change-Id: I26cc2514d7465b344037a6e32b777c0fe0ba9a2c
* provide a title to indicate that it's on purpose left blank and to pass automated tests
* be sure to hide the content altogether from screen reader users using aria-hidden="true"
Change-Id: Ia86eded442777d695ef399fe4bee95ac89000549