Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.diagrams.net will stop working for Embed mode #20

Closed
brainwang opened this issue Jul 22, 2020 · 2 comments
Closed

app.diagrams.net will stop working for Embed mode #20

brainwang opened this issue Jul 22, 2020 · 2 comments

Comments

@brainwang
Copy link

While clicking edit in wiki page, there is a window prompts:
'app.diagrams.net will stop working for Embed mode. Please use embed.diagrams.net.'

But the original diagram can be shown correctly. but could not be edited.

Can anyone help?

@jamesPenicuik
Copy link

jamesPenicuik commented Sep 22, 2020

Hey, i found a solution that worked for me:

Locate the file "ext.drawioeditor.js" and change the following lines:

from src: 'https://www.draw.io/?embed=1&proto=json&spin=1&analytics=0&db=0&gapi=0&od=0&picker=0',
to src: 'https://embed.diagrams.net/?embed=1&ui=atlas&spin=1&modified=unsavedChanges&proto=json',

from this.iframeWindow.postMessage(JSON.stringify(data), 'https://www.draw.io');
to this.iframeWindow.postMessage(JSON.stringify(data), 'https://embed.diagrams.net');

from if (e.origin != 'https://www.draw.io')
to if (e.origin != 'https://embed.diagrams.net')

Otherwise feel free to use my modified code https://github.com/MichaelStrasser88/DrawioEditor.git

@mgeb
Copy link
Owner

mgeb commented Sep 25, 2020

This has been fixed by #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants