How can we add a custom button to the diagram toolbar ?
I would like to add a custom export button either on the diagram editor or on the diagram viewer.
User interface of the diagram in "Edit" or in "View" (call the dive tool) cannot be edited. They are stored in MEGA as a "MEGA Tool".
The only way to do what you want would be to created an additional layer on top of the MEGA Tool to add a toolbar with your button.
From a user perspective it will not be nice from my point of view.
From a customization point of you this is really advanced customization that will probably take you weeks of work before you succeed in what you want.