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
Attempting to reopen a chart gives Invalid mime error #6
Comments
the pull request solves the problem. look at it. |
I just tried out your PR @strikegun When I go to save, I'm getting this error;
There is a typo in that message (follwing), but that's a side issue to the fact I'm getting this message in the first place :P Any ideas? |
just google for the error. |
I admit that was unnecessarily lazy of me. That was indeed the issue. I still have the problem where just after editing a new diagram the image is blank (solved with a refresh as above) but now I can actually edit them, so this PR solves the problem it set out to solve. Thanks :) |
Create a page, and place
{{#drawio:TestChart}}
in it. Save page.Edit the chart, and save.
At this point there is a gaping white whole where the chart was. A refresh brings it up however.
However the real fun starts now - when I go to edit the newly created chart, I get an invalid mime type error.
The full error message is:
It seems possible that for some reason, draw.io is being sent the url to the png version rather that svg it desires. I have not set
$wgDrawioEditorImageType
so svg should still be the default. Also I'm using the tag in it's simplest form;{{#drawio:TestChart}}
so there's no|png
even though I'd be surprised if that were the cause.The text was updated successfully, but these errors were encountered: