app/views/sketchily/_embed.html.erb~ in sketchily-1.4.1 vs app/views/sketchily/_embed.html.erb~ in sketchily-1.5.0

- old
+ new

@@ -36,18 +36,17 @@ <%= content_tag(:iframe, "svg-edit", :src => iframe_src.to_s.html_safe, :width => width, :height => height, - :id => "svgedit_#{id}") %> + :id => "svgedit_#{id}", + :style => "visibility: hidden") %> <script type="text/javascript"> - <%= render :partial => "sketchily/embed", - :formats => :js, - :locals => {:id => id, - :value => value, - :hide_menu => hide_menu, - :show_hyperlink_tool => show_hyperlink_tool, - :hide_image_tool => hide_image_tool, - :url => url} %> + attachLoadHandler("<%= id %>", + "<%= value.try(:squish) %>", + <%= hide_menu %>, + <%= hide_image_tool %>, + <%= show_hyperlink_tool %>, + <%= url %>); </script>