Page 1 of 1

Extend Merge/Compare tools

Posted: Tue Apr 29, 2025 8:03 pm
by fjeneau
Is it already possible to customize/extend the UI for the compare tool? I couldn't find the plugin source code in the Maven repo.

We've implemented file versioning on the backend. (eXist XML db) We would like to have something in the compare tool that gives the user the ability to revert to the older version being compared.

Maybe this is just a matter of customizing plugin.js and repackaging?

If you have an alternate solution, I'd also be interested.

Re: Extend Merge/Compare tools

Posted: Fri May 02, 2025 12:26 pm
by cosminef
Hello,

Thank you for reaching out.
To help you with requirements, you can refer to the following documentation [1]. It should provide useful guidance for your needs.
Let us know if you need further assistance!

Best,
Cosmin

[1] https://www.oxygenxml.com/doc/versions/ ... l-cms.html

Re: Extend Merge/Compare tools

Posted: Mon May 12, 2025 10:38 pm
by fjeneau
We've already integrated it. Is there a way to customize it? Is there a direct way to add a button with an new action to this tool or do I need to somehow add it separately during WebAuthor init?

Re: Extend Merge/Compare tools

Posted: Tue May 13, 2025 5:00 pm
by cosminef
Hello,

Thank you for your reply.
You can add a button with a new action in the Merge/Compare dialog, using this tutorial [1] as inspiration, except that the name of the toolbar is "DiffToolbar" instead of "DITA".

Best,
Cosmin

[1] https://www.oxygenxml.com/maven/com/oxy ... ction.html