Hi Matt,
Thanks for contacting us.
We can disable / enable the toolbar item using it’s index along with it state (enable(true) disable (false)). Please find the code snippet for this scenario.
enable: function() {
this.$refs.rteInstance.ej2Instances.toolbarModule.baseToolbar.toolbarObj.enableItems(13, true);
},
disable: function() {
this.$refs.rteInstance.ej2Instances.toolbarModule.baseToolbar.toolbarObj.enableItems(13, false);
}
|
Please find the demo sample from here.
Please let us know if any concerns.
Regards,
Gurunathan