Extend Merge/Compare tools

Are you missing a feature? Request its implementation here.
fjeneau
Posts: 15
Joined: Thu Sep 24, 2020 8:20 pm

Extend Merge/Compare tools

Post 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.
cosminef
Site Admin
Posts: 238
Joined: Wed Aug 30, 2023 2:33 pm

Re: Extend Merge/Compare tools

Post 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
Cosmin Eftenie
www.oxygenxml.com
fjeneau
Posts: 15
Joined: Thu Sep 24, 2020 8:20 pm

Re: Extend Merge/Compare tools

Post 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?
cosminef
Site Admin
Posts: 238
Joined: Wed Aug 30, 2023 2:33 pm

Re: Extend Merge/Compare tools

Post 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
Cosmin Eftenie
www.oxygenxml.com
Post Reply