Oxygen Web Author copy issues!
Post here questions and problems related to editing and publishing DITA content.
Oxygen Web Author copy issues!
Hi team,
We are using Oxygen Web Author v21.1.1. We see a common issue with Oxygen that, the copy content does not work well in Author mode.
Consider user has a paragraph with some content like below:
<p>Test content in paragraph</p>
User tries to copy the text "Test content" in Author mode. But as these are two words, the copy using mouse selects the starting of the element as well at times. It is not working in a very user friendly manner in Oxygen Author. By unknowingly selecting the starting of the <p> tag, the clipboard is copied with <p> and the content inside it. We understand that Oxygen handles paste in a smart way, but that sometimes cause DTD errors for users. For Web Authors, the content developers are mostly just contributors and this can really confuse those users.
Is there a better way to copy in Oxygen. Or is there a way we can configure the copy behavior in Oxygen?
Regards,
Shabeer
We are using Oxygen Web Author v21.1.1. We see a common issue with Oxygen that, the copy content does not work well in Author mode.
Consider user has a paragraph with some content like below:
<p>Test content in paragraph</p>
User tries to copy the text "Test content" in Author mode. But as these are two words, the copy using mouse selects the starting of the element as well at times. It is not working in a very user friendly manner in Oxygen Author. By unknowingly selecting the starting of the <p> tag, the clipboard is copied with <p> and the content inside it. We understand that Oxygen handles paste in a smart way, but that sometimes cause DTD errors for users. For Web Authors, the content developers are mostly just contributors and this can really confuse those users.
Is there a better way to copy in Oxygen. Or is there a way we can configure the copy behavior in Oxygen?
Regards,
Shabeer
-
- Posts: 494
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Oxygen Web Author copy issues!
Post by cristi_talau »
Hello,
Thanks for reporting this issue. I managed to reproduce it. I registered an improvement request for this scenario and I will update this forum post when it will be solved. We expect to release a fix later this year.
If this is an urgent issue for you and you have development resources, I can give you instructions on how to implement a fix in a plugin that contains Java code.
Best,
Cristian
Thanks for reporting this issue. I managed to reproduce it. I registered an improvement request for this scenario and I will update this forum post when it will be solved. We expect to release a fix later this year.
If this is an urgent issue for you and you have development resources, I can give you instructions on how to implement a fix in a plugin that contains Java code.
Best,
Cristian
Re: Oxygen Web Author copy issues!
Hi Cristian,
Thank you for the response.
We would like to get the instructions to implement an improved copy behavior in Oxygen Web. Based on the feasibility and effort, we would implement it.
Also could you please clarify what improvement would be done for the copy behavior in future? Is it that, while selecting somecontent, it would always either select the content or the content+tags so that users will understand what exactly is being copied to the clipboard by just seeing in Oxygen Author? Or would there be any new options for copy behavior?
Regards,
Shabeer
Thank you for the response.
We would like to get the instructions to implement an improved copy behavior in Oxygen Web. Based on the feasibility and effort, we would implement it.
Also could you please clarify what improvement would be done for the copy behavior in future? Is it that, while selecting somecontent, it would always either select the content or the content+tags so that users will understand what exactly is being copied to the clipboard by just seeing in Oxygen Author? Or would there be any new options for copy behavior?
Regards,
Shabeer
Re: Oxygen Web Author copy issues!
Hi,
Regarding the improvement that we plan to add to the copy behavior in a future version: we think that if the selection includes the entire content of a block element and just one of the sentinels then we will consider that the entire element is copied. But, if the selection includes just a part of the content and a sentinel, we will consider that the sentinel is not selected (only the content).
We will start our analysis with this use case and we will see then if there are others to consider.
If you want to implement a different behavior for copy you must use the following API [1]:
that will allow you to create a different fragment for copy, than the default one.
The AuthorSchemaAwareEditingHandler is set through the ExtensionBundle [2]:
If you use an extension of DITA make sure that your ExtensionBundle will extend the .
Please let us know if you need further assistance.
[1] https://www.oxygenxml.com/InstData/Edit ... horAccess-
[2] https://www.oxygenxml.com/InstData/Edit ... gHandler--
Best Regards,
Mihaela
Regarding the improvement that we plan to add to the copy behavior in a future version: we think that if the selection includes the entire content of a block element and just one of the sentinels then we will consider that the entire element is copied. But, if the selection includes just a part of the content and a sentinel, we will consider that the sentinel is not selected (only the content).
We will start our analysis with this use case and we will see then if there are others to consider.
If you want to implement a different behavior for copy you must use the following API [1]:
Code: Select all
ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandler.handleCreateDocumentFragment(int, int, int, AuthorAccess)
The AuthorSchemaAwareEditingHandler is set through the ExtensionBundle [2]:
Code: Select all
ro.sync.ecss.extensions.api.ExtensionsBundle.getAuthorSchemaAwareEditingHandler()
Code: Select all
ro.sync.ecss.extensions.dita.DITAExtensionsBundle
Please let us know if you need further assistance.
[1] https://www.oxygenxml.com/InstData/Edit ... horAccess-
[2] https://www.oxygenxml.com/InstData/Edit ... gHandler--
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
Re: Oxygen Web Author copy issues!
Hi,
Thank you for the response again. We will look into the implementation part soon.
Mean time, we see an option in Eclipse Oxygen "Reject Action when its result is invalid" for "Paste and Drag and Drop". Is there any similar option in Oxygen Web Author as well? If so, how we enable it?
Regards,
Shabeer
Thank you for the response again. We will look into the implementation part soon.
Mean time, we see an option in Eclipse Oxygen "Reject Action when its result is invalid" for "Paste and Drag and Drop". Is there any similar option in Oxygen Web Author as well? If so, how we enable it?
Regards,
Shabeer
Re: Oxygen Web Author copy issues!
Hello,
The schema aware options are also taken into account in Web Author.
You can follow these steps to import the schema aware options from Oxygen XML Editor Eclipse Plugin to Web Author:
Please let us know if you need further assistance.
[1] https://www.oxygenxml.com/doc/versions/ ... al-options
[2] https://www.oxygenxml.com/doc/versions/ ... tions.html
Regards,
Mihaela
The schema aware options are also taken into account in Web Author.
You can follow these steps to import the schema aware options from Oxygen XML Editor Eclipse Plugin to Web Author:
- Export Global Options from the Eclipse Plugin [1]
- From the exported xml file copy the entry containing schema aware options (search for "authorSchemaAwareOptions")
- Insert the copied schema aware options in the Web Author options [2]
Please let us know if you need further assistance.
[1] https://www.oxygenxml.com/doc/versions/ ... al-options
[2] https://www.oxygenxml.com/doc/versions/ ... tions.html
Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
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