Sha256: 4c88d7ba600e4371bdd4378363a57151ce080a2571834e4619cadb177b2a17c0

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

<% # Clients of this partial must supply the following variables:
   # id
   # value
   #
   # Additionally, they may override the following variables:
   width ||= "750px"
   height ||= "650px"
   canvas_width ||= 640
   canvas_height ||= 480
   canvas_expansion ||= 3
   hide_rulers ||= false
   hide_menu ||= false
   hide_image_tool ||= false
   hide_hyperlink_tool ||= false %>

<%= javascript_include_tag "sketchily_embed" %>

<iframe src="/assets/svg-editor.html?source=&dimensions=<%= "#{canvas_width},#{canvas_height}" %>&canvas_expansion=<%= canvas_expansion %>&showRulers=<%= !hide_rulers %>"
  width="<%= width %>" height="<%= height %>" id="svgedit_<%= id %>"></iframe>

<script type="text/javascript">
  <%= render :partial => "sketchily/embed",
             :formats => :js,
             :locals => {:id => id,
                         :value => value,
                         :hide_menu => hide_menu,
                         :hide_image_tool => hide_image_tool,
                         :hide_hyperlink_tool => hide_hyperlink_tool} %>
</script>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sketchily-1.1.0 app/views/sketchily/_embed.html.erb
sketchily-1.0.3 app/views/sketchily/_embed.html.erb
sketchily-1.0.2 app/views/sketchily/_embed.html.erb