-
Hi, I'm using drawio in NextCloud to edit .drawio files and I would like to point to those files for display in a Reveal.js presentation. I do not need editing of the .drawio file in the Reveal.js HTML file. All I want to do is display the .drawio file (using javscript I assume) in the client and loading the .drawio file from a URL but after a lot of searching etc I cannot find a simple example of how to do this. There are people building huge stacks to convert .drawio to SVG/PNG/PDF etc but that seems like overkill. I can point to a .drawio file in Google Drive using a URL but I can't point to a .drawio file on any other service (e.g. Nextcloud server). This does not seem like an unrealistic expectation but maybe I am missing part of the story. Is the function of ONLY viewing a .drawio file not available because of some commercial arrangement with Google ? Is there an example of converting a served .drawio file into an image in a browser client? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
In the end I used:
|
Beta Was this translation helpful? Give feedback.
-
Great stuff! Really helped me out. I'm moving some of my content off of Confluence onto GitHub pages where I was planning to just host the diagrams as "editable" SVGs. I didn't realize until I was pretty far into it that any "custom actions/links" in my diagrams have to be rendered by client-side js and I was having a hard time finding documentation on how to properly feed a hosted file's data into viewer.min.js. |
Beta Was this translation helpful? Give feedback.
In the end I used: