Page 1 of 1

How to Move Position of Custom Action Icon on Toolbar

Posted: Wed Mar 27, 2024 4:23 am
by dreifsnider
Hi,

We added a new custom action in Web Author to insert a figure and title element when an image is selected. We've also added this action as a button on the DITA toolbar.

However, we would like to change the position of this icon to be in-between the previous insert image button (we changed the icon to better represent the behavior of the action) and the Link button, for example:
image.png
We added this new button to the toolbar using this tutorial: https://www.oxygenxml.com/maven/com/oxy ... ction.html

But the tutorial only shows how to push to the children of the toolbar, not how to specify an exact position of the button. How can we specify an exact position of this button on the toolbar?

Thank you!

Daniel

Re: How to Move Position of Custom Action Icon on Toolbar

Posted: Wed Mar 27, 2024 9:16 am
by dreifsnider
Hi,

I believe I can accomplish this using the splice() method to alter the DITA toolbar array.

I will reply back if I encounter any issues with this method.

Thanks!

Daniel