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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Access DocumentEditorContainer toolbar buttons

Thread ID:

Created:

Updated:

Platform:

Replies:

147073 Aug 30,2019 05:33 PM UTC Sep 2,2019 08:37 AM UTC JavaScript - EJ 2 1
loading
Tags: DocumentEditor
Alejandro
Asked On August 30, 2019 05:33 PM UTC

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:

$(".wordEditor_toolbar_new").hide()

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
Alex


Suriya Murugan [Syncfusion]
Replied On 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. 

Regards, 

Suriya M. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon