How to display the .drawio file in HTML
markNZed opened this issue · 4 comments
Hi, I would like to use this plugin to edit .drawio files on a NextCloud server and then I want to display those files in an HTML page without converting to PNG or SCG. Is there are simple way to embed the .drawio in HTML ? I looked quite a lot but have not found anything. The NextCloud drawio plugin is working great!
You can try File -> Embed -> HTML
That gives me an embedded version of the .drawio file. If I change the .drawio file it would not update. I'm looking to treat the .drawio file like an img resource (it would require a little bit of Javascript I assume to make that happen)
You can use the iframe method in this page https://www.diagrams.net/doc/faq/embed-html but you'll need a URL that grant access to the diagram to everyone
Unfortunately that option does not exist anymore. I did eventually figure out a way to do it and posted an example at jgraph/drawio#3430 So I will close this, thank for trying to help too!