Do you need to switch a diagram from read-only to fully editable mode, e.g. based on user permissions? Here is a demo of how to structure your application to make switching between view and edit mode easier.
Switch the diagram from read-only to fully editable mode.
The source code of this demo is available as part of the JointJS+ commercial license. Don't have a license yet? Start a trial and use the source code of this and many other demos for free, with no obligations, for 30 days.