Page 1 of 1

Issue on copy paste url

Posted: Fri Feb 05, 2021 8:45 pm
by Isabelle

We face an issue with copy / paste an url in Oxygen.

If the text start with http:// or ftp://, then the copy / paste does not work.
It is the same, even if the text come from an other software (Notepad, ...) or directly from a file open with our application.

We face this issue with Oxygen sdk 18 and 22.

Do you have any idea where this might come from?
Do we need a special configuration to manage url copy/paste ,


Re: Issue on copy paste url

Posted: Mon Feb 08, 2021 10:55 am
by Radu
Hi Isabelle,

I have no idea why this does not work for you. When pasting the URL in the Author visual editing area does the Author component report any exception stack trace in the console? By default when pasting URLs in the Author visual editor, a link should be automatically created to the URL. This is done by calling the "ro.sync.ecss.extensions.api.AuthorExternalObjectInsertionHandler" implementation specific for your framework configuration. Did you implement this AuthorExternalObjectInsertionHandler API in your framework configuration on the "ro.sync.ecss.extensions.api.ExtensionsBundle.createExternalObjectInsertionHandler()" callback?
Or you can disable the URL specific paste processing by setting this global property so that URLs are interpreted as plain strings:

Code: Select all

PluginWorkspaceProvider.getPluginWorkspace().setGlobalObjectProperty("", Boolean.FALSE);

Re: Issue on copy paste url

Posted: Mon Feb 08, 2021 2:13 pm
by Isabelle
Hello Radu,

Thanks for your quick feedback.
You are right, we have implemented AuthorExternalObjectInsertionHandler API in our framework.
We will check what is wrong on our side.

I have tried the global property and it works fine.

Isabelle Ousset