Difference between revision 4 and current revision
Summary: (^|:)warning: → ⚠No diff available.
If you upload a SVG file to http://www.emacswiki.org/test/SVG_Test, you’ll be able to look at it. I’m using an iframe to do that.
If you then click on Edit this page and then on Edit image in the browser, you’ll get the SVG editor.
What I’m lacking is loading and saving the image!
If you look around the svg-edit project’s pages, you’ll note example code like the following:
What I don’t understand is where this code runs and how svgEditor is set.
If I simply add the following to the top of the page, inside the header, then Firebug will tell me that the svgEditor object does not exist.
What now? Is this a variable “inside” the iframe? Is this something I need to initialize by calling a function? Which one?
Update: Perhaps I’m running into some cross-site scripting protection. The site runs on www.emacswiki.org, the SVG editor runs on svg-edit.googlecode.com. Using Firebug, I run
document.getElementsByName('svgEditor').getSVGDocument().setUserData('fd') and get an error message. ⚠