This is a migrated thread and some comments may be shown as answers.

Hiding custom button

1 Answer 22 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Michael Pullella
Top achievements
Rank 1
Michael Pullella asked on 17 Aug 2010, 09:58 PM
Is it possible to hide a custom toolbar button?
I know I can disable it by using set_state(-1), but would rather hide it.

<tools name="noteTool">
    <tool name="tbiNote" showtext="true" Text="Mark as Note" shortcut="CTRL+SHIFT+N"/>
</tools>

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 20 Aug 2010, 10:33 AM
Hi Michael,

You can try the following code:

editor.getToolByName("CustomButton").get_element().style.display = "none";

Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Michael Pullella
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or