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

Load plantUML from image link #9

Open
ryardley opened this issue Feb 8, 2020 · 1 comment
Open

Load plantUML from image link #9

ryardley opened this issue Feb 8, 2020 · 1 comment

Comments

@ryardley
Copy link

ryardley commented Feb 8, 2020

Thanks for doing this the editor it looks great!

If I create a diagram say for github but then I want to edit it, is there a way to load the diagram back into the editor?

Say I have:

<img src="https://plantuml-server.kkeisuke.app/svg/[encoded-plantuml-code].svg"/>

How can I load this into the editor? I can't seem to find a way to do it.

Perhaps it would be good to make a route where it is possible to pass in the image url to load it into localStorage in the editor? Eg.

https://plantuml-editor.kkeisuke.com?img=https://plantuml-server.kkeisuke.app/svg/SyfFKj2rKt3CoKnELR1Io4ZDoSa700.svg

Then this could become a dialog that accepts a url?


I found a python script to decode the string perhaps it could be ported over to JS?

https://gist.github.com/ryardley/64816f5097003a35f9726aab676920d0

@alinradut
Copy link

Hey, I actually needed the same thing and I added it in my fork here: https://github.com/alinradut/plantuml-editor

Also disabled automatic local storage saves and added history pushstate/popstate.

I probably implemented this the wrong way as far as vue is concerned, but it works for me.

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

2 participants