We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Access DocumentEditorContainer toolbar buttons

Good afternoon,

I'm testing the DocumentEditorContainer component, which integrates the DocumentEditor with features like an embedded toolbar.

Looking at the source of a test page I realized that the buttons have an ID, e.g. "wordEditor_toolbar_new", etc.

I need to access those buttons in order to hide/show them according to some other conditions.

In my tests, I could use a jQuery call like the following in order to hide a button:


It worked just fine, but I'm wondering if this is the correct way, or there is a more "api-friendly" way of dealing with this component.

Thanks in advance, regards

1 Reply

SM Suriya Murugan Syncfusion Team September 2, 2019 08:37 AM UTC

Hi Alex, 

Thank you for contacting the Syncfusion support. 

Currently, DocumentEditor does not have any public API to show/hide toolbar items. We suggest all to use css override to hide toolbar items. You can follow your proposed way to hide toolbar items. 


Suriya M. 

Live Chat Icon For mobile
Up arrow icon