# Customizing "Text tools" group

**URL:** <https://pdfjs.community/t/customizing-text-tools-group/92>\
**Category:** Technical Support\
**Created:** [June 25, 2020, 5:30am UTC](https://pdfjs.community/t/customizing-text-tools-group/92 "2020-06-25T05:30:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rabiraj](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@rabiraj](https://pdfjs.community/u/rabiraj)\
**Post date:** [June 25, 2020, 5:30am UTC](https://pdfjs.community/t/customizing-text-tools-group/92/1 "2020-06-25T05:30:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![zzhang](https://avatars.discourse-cdn.com/v4/letter/z/b9e5f3/32.png) [@zzhang](https://pdfjs.community/u/zzhang)\
**Post date:** [June 25, 2020, 3:36pm UTC](https://pdfjs.community/t/customizing-text-tools-group/92/2 "2020-06-25T15:36:42Z")

</div>

Hi,

To hide certain buttons in the viewer, please refer to this guide [https://pdfjs.express/documentation/ui-customization/hiding-elements](https://pdfjs.express/documentation/ui-customization/hiding-elements).

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

---

<div class="post-metadata">

**Author:** ![zzhang](https://avatars.discourse-cdn.com/v4/letter/z/b9e5f3/32.png) [@zzhang](https://pdfjs.community/u/zzhang)\
**Post date:** [July 13, 2020, 5:21pm UTC](https://pdfjs.community/t/customizing-text-tools-group/92/3 "2020-07-13T17:21:21Z")

</div>


