Page 1 of 1

Ignoring processing instructions while using track changes!

Posted: Fri Apr 30, 2021 12:24 pm
by mu258770
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

Re: Ignoring processing instructions while using track changes!

Posted: Fri Apr 30, 2021 1:41 pm
by cristi_talau
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