Customizing "Text tools" group

How can we customize Text tools group e.g. to show only 2 highlight buttons instead of 4
Also how can we remove underline and squiggy button in this group.

Can we also not allow users to change highlight color and opacity?


To hide certain buttons in the viewer, please refer to this guide

In particular, highlight buttons have data-elements such as highlightToolButton, highlightToolButton2, etc and you can pass them to the instance.disableElements API call.

In the latest version we’ve added data-elements to the color palette and the opacity slider, so you can use disableElements to hide them based on the current tool as well.

Best Regards,
Zhijie Zhang