Removing oXygen functions out of the top toolbar in Web Author

Are you missing a feature? Request its implementation here.
david.badger
Posts: 29
Joined: Tue Feb 25, 2014 12:14 am

Removing oXygen functions out of the top toolbar in Web Author

Post by david.badger »

Hello,
We are using Web Author 22.1. We'd like to remove the "Author/AcceptChange" and "Author/RejectChange" functions from the top toolbar to free up some space. We've tried the

Code: Select all

editor.getActionsManager().unregisterAction(...)
function, however this also removes the functions from the Review pane at the right.
Is there a way to preserve the functions and only remove them from the top toolbar in Web Author?
Thanks!
cosminef
Site Admin
Posts: 234
Joined: Wed Aug 30, 2023 2:33 pm

Re: Removing oXygen functions out of the top toolbar in Web Author

Post by cosminef »

Hello,

Thank you for contacting us.
You can use this tutorial [1] - "Implementing a Custom Action" as a reference. However, instead of adding an action, you'll need to filter the actions by the desired IDs.

Best,
Cosmin

[1] https://www.oxygenxml.com/maven/com/oxy ... ction.html
Cosmin Eftenie
www.oxygenxml.com
david.badger
Posts: 29
Joined: Tue Feb 25, 2014 12:14 am

Re: Removing oXygen functions out of the top toolbar in Web Author

Post by david.badger »

Thanks for pointing us in the right direction. We were able to remove the functions from the top toolbar by identifying the "Review" toolbar, then looping through

Code: Select all

toolbar.children
and calling

Code: Select all

splice()
to remove the desired actions.
Post Reply