Skip to content

Commit

Permalink
Update drawio-embed-addSVG.html
Browse files Browse the repository at this point in the history
  • Loading branch information
menckend committed Oct 7, 2024
1 parent fd5a49b commit 160b19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/drawio-embed-addSVG.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<!-- Javascript (for use in an include in a site published by Jekyll) to render an externally hosted draw.io file in the client's browser using the draw.io "viewer-static.in.js" viewer. The draw.io viewer is required if you want any "custom links/actions" functionality to be enabled in the diagram when it renders. The viewer also has a toolbar that with controls for zoom in/out, layer-toggling, tag-visiblity toggling, page-selection, and editing (the browser's local copy of) the diagram in-browser.
<!-- Javascript (for use in an include in a site published by Jekyll) to render an externally hosted draw.io file in the client's browser using the draw.io "viewer-static.in.js" viewer. The draw.io viewer is required if you want any "custom links/actions" functionality to be enabled in the diagram when it renders. The viewer also has a toolbar with controls for zoom in/out, layer-toggling, tag-visiblity toggling, page-selection, and editing (the browser's local copy of) the diagram in-browser.
Adapted from code provided by markNZed (https://github.com/markNZed), provided in response to his own question on the drawio github repository. (https://github.com/jgraph/drawio/discussions/3430) Original version could read files that had been saved "directly" in drawio's XML. I modified it to add support for reading from drawio diagrams that had been saved as "editable SVGs". I also added a pseudo-random tag to add to the <div> element it creates/populates so that the script can be used multiple times in the same document.-->

<!-- Insert a tag for the <div> object that the viewer-static-min.js code will render the diagram within-->
Expand Down

0 comments on commit 160b19e

Please sign in to comment.