Issue on copy paste url

Post here questions and problems related to oXygen frameworks/document types.
Isabelle
Posts: 78
Joined: Fri Jan 20, 2017 1:11 pm

Issue on copy paste url

Post by Isabelle » Fri Feb 05, 2021 8:45 pm

Hello,

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 ,

Regards,
Isabelle

Radu
Posts: 7538
Joined: Fri Jul 09, 2004 5:18 pm

Re: Issue on copy paste url

Post by Radu » Mon Feb 08, 2021 10:55 am

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("author.convert.pasted.urls.to.links", Boolean.FALSE);
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Isabelle
Posts: 78
Joined: Fri Jan 20, 2017 1:11 pm

Re: Issue on copy paste url

Post by Isabelle » Mon Feb 08, 2021 2:13 pm

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.
Thanks.

Regards,
Isabelle Ousset

Post Reply