Allow draw.io diagrams to be rendered as a lightbox when viewing it on a page in the Wiki
Sahil Shah
Draw.io diagrams can have multiple pages and some interactivity. When viewed on a rendered wiki.js page, the draw.io diagrams are static images and can only show one page worth of information.
E
Eric Baril
Not perfect but to use lightbox:
Save the diagram content of Googledrive or github
From drawio interface : Exporting your diagram as iframe does allow you to run with lightbox.
To integrate into Wikijs, I create my article with RawHTML and paste the iframe.
However, the "original" file is not directly editable from Wikijs. I save it into a shared Github repo.
To me, the use of lightbox with "Action links" is WAY preferable then direct access.
Shown here : a simple working action button
( I do have plenty of complex action buttons drawio documents )
export as Iframe, <github url> replaced by yours....
<iframe frameborder="0" style="width:100%;height:613px;" src="https://viewer.diagrams.net/?tags=%7B%7D&lightbox=1&highlight=0000ff&layers=1&title=Untitled%20Diagram.drawio.html#<github url>"></iframe>