Ignoring processing instructions while using track changes!

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

Ignoring processing instructions while using track changes!

Post by mu258770 » Fri Apr 30, 2021 12:24 pm

Hi team,

We would like to know if there are any options in Oxygen (Eclipse Oxygen 20.1 and Web Author 22.1) to ignore processing instructions for track changes.

Consider we have a processing instruction existing in a topic like below,

Code: Select all

<?checkData status="red"?>
Now if we keep track changes ON and delete this processing instruction, the content become like this:

Code: Select all

<?oxy_delete author="abc" timestamp="20210430T145228+0530" content="&lt;?checkData status=&quot;red&quot;?&gt;"?>
<?oxy_options track_changes="on"?>
But we do not need this to happen. We need the processing instruction to just get deleted. The track changes processing instructions should not wrap the existing processing instruction.

Do you know if this is possible? If so, how?

Regards,
Shabeer

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

Re: Ignoring processing instructions while using track changes!

Post by cristi_talau » Fri Apr 30, 2021 1:41 pm

Hello,

The achieve this behavior you need to implement a plugin and register an AuthorDocumentFilter [1]. In this filter you can override the builtin delete behavior. For example, you can disable change tracking before delegating to the default "delete" behavior.

Best,
Cristian

[1] https://www.oxygenxml.com/InstData/Edit ... ilter.html

Post Reply