Issue on copy paste url
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Issue on copy paste url
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
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
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Issue on copy paste url
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:
Regards,
Radu
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);
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Re: Issue on copy paste url
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
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
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service