How can I integrate SVG-EDIT with a JS application I am creating? #750
Replies: 5 comments 2 replies
-
After reading through documentation I think I need to use to add my code to sent the svg back to the parent window svgEditor.setCustomHandlers({ |
Beta Was this translation helpful? Give feedback.
-
It seems that svgedit5 still has the ES6 version that can be used without Node.js and served from the same server (Flask in my case) as my app so I should be good using that version. svgedit5 still has the setCustomHandlers method so I should be OK. I still need to see what baugs and security flaws might still affect this older version. I am not sure if svgedit7 is much better in this respect. It is certainly nicer integrated in the browser than svgedit5 |
Beta Was this translation helpful? Give feedback.
-
I'm not sure I understand very well what you want to achieve. Nodejs is not required to run svgedit7. You should be able to integrate svgedit pretty easily in your application. You need at one point to use a div and load svgedit inside this div.
myextension.js would look like this:
|
Beta Was this translation helpful? Give feedback.
-
I believe this is because you run the version from the source folder (src) |
Beta Was this translation helpful? Give feedback.
-
thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi guys
I need to add some SVG overlay to an image, practically add rectangles over an image and then use this in the HTML page I am editing
I know that it is possible to call the SVG-EDIT page and pass the link to the image I am editing as argument via the URL like so
index.html?"link to the image"
How can I get the results back into my application? Is there was to configure SVG-Edit to call back the parent application that opened the editor and passed the initial link to the picture ? My app is a browser side app
Beta Was this translation helpful? Give feedback.
All reactions