Page 1 of 1

Removing oXygen functions out of the top toolbar in Web Author

Posted: Mon Apr 07, 2025 9:58 pm
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!

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

Posted: Tue Apr 08, 2025 12:45 pm
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

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

Posted: Thu Apr 10, 2025 5:33 pm
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.