The discussion revolves around embedding draw.io diagrams into posts on Discourse. sreinert suggests embedding diagrams from draw.io to enhance discussions. codinghorror asks if draw.io supports OpenGraph or oEmbed. sreinert notes that draw.io uses mxGraph, and codinghorror suggests requesting support. sam proposes a pull request to the onebox gem. sreinert confirms sending a request. davidjgraph, a draw.io developer, clarifies that draw.io doesn’t host data but supports embedding via postMessage, allowing users to open draw.io in an iframe and exchange XML data. cmdntd asks about whitelisting the draw.io domain.
I like using draw.io for diagramming. It would be nice to aid discussions with diagrams from there using the latest version of the diagram. Draw.io allows you to embed an editable drawing as an HTML/Javascript snippet, but this doesn’t currently work in a Discourse post.
Would creating a onebox file for draw.io be the right approach? Or is this a new feature?