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