3 ms·
The project has an embed mode, which was used in this case. It needs a sequence embed, but basically you load draw in embed mode within an iFrame, do a handsha
by davidjgraph 6y ago
The project has an embed mode, which was used in this case.
It needs a sequence embed, but basically you load draw in embed mode within an iFrame, do a handshake using postMessage, then load and save is direct between parent and frame, again using postMessage.
The idea is to be able to embed into hosts that are capable of storing the diagram data, without any code changes to draw. It can embed either the main site (which was renamed to app.diagrams.net), or a locally hosted/internally packaged version of the project.
Additional information on the embed format:
https://github.com/jgraph/drawio-integration https://github.com/jgraph/drawio-integration
https://desk.draw.io/support/solutions/articles/16000042544-embed-mode https://desk.draw.io/support/solutions/articles/16000042544-...