Skip to content

Viewing a .drawio file in an HTML document #3430

Answered by markNZed
markNZed asked this question in Q&A
Discussion options

You must be logged in to vote

In the end I used:

<html>
<head>
    <script type="text/javascript" src="https://www.draw.io/js/viewer.min.js"></script>
</head>
<body>
<!-- This works but is commented out
<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="{&quot;highlight&quot;:&quot;#0000ff&quot;,&quot;nav&quot;:true,&quot;resize&quot;:true,&quot;toolbar&quot;:&quot;zoom layers lightbox&quot;,&quot;edit&quot;:&quot;_blank&quot;,&quot;xml&quot;:&quot;&lt;mxfile userAgent=\&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\&quot; version=\&quot;8.6.5\&quot; editor=\&quot;www.draw.io\&quot;&gt;&lt;diagram id=\…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@menckend
Comment options

Answer selected by markNZed
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants