lml / sketchily

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

Error when loading the page #13

Closed abit closed 10 years ago

abit commented 10 years ago

I inserted a sketchily_tag on the page, but when the page is loading, an error raises:

"Error: A Node was inserted somewhere it doesn't belong.
    at svgedit.sanitize.sanitizeSvg (http://localhost:3000/assets/sketchily.js:666:287)
    at prepareSvg (http://localhost:3000/assets/sketchily.js:760:325)
    at setSvgString (http://localhost:3000/assets/sketchily.js:858:136)
    at eval (eval at <anonymous> (http://localhost:3000/assets/sketchily.js:1:0), <anonymous>:1:38)
    at http://localhost:3000/assets/sketchily.js:1050:381"

Slim code of the view:

.container#svg_editor
  .row
    .outside_editor_wrap
      .inside_editor_wrap
        = form_tag("svg_edit_form")
          = sketchily_tag("svg_edit_editor", nil, :width => "1027", :height => "800", :canvas_width => "920", :canvas_height => "600", :hide_rulers => true)
Dantemss commented 10 years ago

I need to know what browser and version you are using. Also, does this page work properly?

http://svg-edit.googlecode.com/svn/branches/2.6/editor/svg-editor.html

Dantemss commented 10 years ago

Closing due to no response. Feel free to post another issue.