lml / sketchily

Embed SVG-edit in Rails HTML forms
MIT License
26 stars 9 forks source link

Access to svgCanvas/svgEditor functionality #12

Closed abit closed 10 years ago

abit commented 10 years ago

After embedding the svg-edit on the page via sketchily_tag and navigating to this page, I have a variable svgCanvas, but it doesn't provide any editor functionality. And the mentioned in the svg-edit documentation svgEditor variable doesn't exist. So I cannot call svgCanvas.updateCanvas():

TypeError: Cannot call method 'updateCanvas' of undefined.

An existing embedded_svg_edit($('iframe#svgedit_svg_edit_editor')) returns 'undefined'. How can I access the editor after embedding it with the 'sketchily_tag'?

Dantemss commented 10 years ago

Closing due to no response on this or #13. Feel free to open another issue.