Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Last active January 12, 2021 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmotta/c65dc7ff7f8e4acf67c051d1887fee58 to your computer and use it in GitHub Desktop.
Save ljmotta/c65dc7ff7f8e4acf67c051d1887fee58 to your computer and use it in GitHub Desktop.
Embed model with GitHubGist
<iframe width="100%" height="100%" srcdoc="<!DOCTYPE html> <html lang=&quot;en&quot;> <head> <script
src=&quot;https://kiegroup.github.io/kogito-online/standalone/bpmn/index.js&quot;></script> <title></title> <style>
html, body, iframe { margin: 0; border: 0; padding: 0; height: 100%;
width: 100%; } </style> </head> <body> <script>
fetch(&quot;https://gist.githubusercontent.com/ljmotta/9323333a2e5c64a4c78bf96c8487bd9c/raw/mygist.bpmn&quot;)
.then(response => response.text()) .then(content => BpmnEditor.open({container: document.body, readOnly: true,
initialContent: content, origin: &quot;*&quot; })) </script> </body> </html>"></iframe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment