Replies: 1 comment
-
Hello , |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I intend to use SVG-Edit to edit svg slides in a website i'm making. For that purpose I should be able to instruct SVG-Edit to open an URL containing the image, and once the user is finished editing it, the save button should post the edited image back to that URL (or any other) on my server so I can update it in my backend.
In practice for the loading I found the following that seems to do the charm:
svgEditor.loadFromURL(...)
Is it the preferred way to do?
But for saving, pushing the save buttons still default to opening a local file system dialog.
In the documentation i saw those config parameters:
`
But they don't seem to have any effect? Or are they used by an extension that is not part of SVG-Edit packaging? How to make my editor actually prefer working with URLS for download and upload?
Documentation also points to a custom handler for save event but the Editor no longer have a setCustomHandler function
svgEditor.setCustomHandlers({ save (_win, _data) { // Save svg } });
PS: i'm using the v7 freshly built
Thanks a lot !
Beta Was this translation helpful? Give feedback.
All reactions