Oxygen Web Author copy issues!

mu258770
Posts: 138
Joined: Mon Aug 18, 2014 4:11 pm

Oxygen Web Author copy issues!

Post by mu258770 » Wed Sep 09, 2020 2:04 pm

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

cristi_talau
Posts: 269
Joined: Thu Sep 04, 2014 4:22 pm

Re: Oxygen Web Author copy issues!

Post by cristi_talau » Thu Sep 10, 2020 2:18 pm

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

mu258770
Posts: 138
Joined: Mon Aug 18, 2014 4:11 pm

Re: Oxygen Web Author copy issues!

Post by mu258770 » Thu Sep 10, 2020 5:13 pm

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

mihaela
Posts: 225
Joined: Wed May 20, 2009 2:40 pm

Re: Oxygen Web Author copy issues!

Post by mihaela » Mon Sep 14, 2020 4:41 pm

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]:

Code: Select all

ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandler.handleCreateDocumentFragment(int, int, int, AuthorAccess)
that will allow you to create a different fragment for copy, than the default one.
The AuthorSchemaAwareEditingHandler is set through the ExtensionBundle [2]:

Code: Select all

ro.sync.ecss.extensions.api.ExtensionsBundle.getAuthorSchemaAwareEditingHandler()
If you use an extension of DITA make sure that your ExtensionBundle will extend the

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

mu258770
Posts: 138
Joined: Mon Aug 18, 2014 4:11 pm

Re: Oxygen Web Author copy issues!

Post by mu258770 » Tue Sep 15, 2020 10:41 am

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

mihaela
Posts: 225
Joined: Wed May 20, 2009 2:40 pm

Re: Oxygen Web Author copy issues!

Post by mihaela » Wed Sep 16, 2020 10:01 am

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:
  • 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]
Do not forget to restart the Web Author server after changing the options.
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

Post Reply