How to Move Position of Custom Action Icon on Toolbar

Are you missing a feature? Request its implementation here.
dreifsnider
Posts: 105
Joined: Thu Aug 30, 2018 10:06 pm

How to Move Position of Custom Action Icon on Toolbar

Post 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
image.png (375.67 KiB) Viewed 235 times
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
dreifsnider
Posts: 105
Joined: Thu Aug 30, 2018 10:06 pm

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

Post 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
Post Reply