Skip to main content

Embed mode

Embed mode allows you to integrate the draw.io editor into your own application using an iframe. When the embed=1 URL parameter is set, the editor communicates with the parent page or opener window via postMessage.

The complete reference for URL parameters, the JSON protocol, load/save events, supported actions (merge, patch, export, diff sync, …), and embedded export formats is maintained as a GitHub Discussion:

Embed mode — jgraph/drawio Discussion #5612

Use the comments on that discussion for questions, clarifications, and updates.