Sha256: 89f13541de0458db8d610aaa123bad0b6777f82708fa8c15b891c5ab76bf0f4f

Contents?: true

Size: 764 Bytes

Versions: 1

Compression:

Stored size: 764 Bytes

Contents

<% content_for :javascripts do %>
  <%= javascript_include_tag 'ckeditor' %>
<% end %>

<%
  custom = { :rows => @resource.typus_options_for(:form_rows), :class => "ckeditor" }
  options = options.merge!(custom)
%>

<%
  input = "#{@resource.model_name.underscore.gsub("/", "_")}_#{attribute}"
  label_text << <<-DATA
<small>
  #{link_to "Insert picture",
            {:controller => "/admin/assets", :layout => 'admin/headless', :input => input},
            {:class => "iframe", :style => "font-size: 10px; background: black; color: white; padding: 2px 5px; -moz-border-radius: 3px; -webkit-border-radius: 3px;"}}
</small>
  DATA
%>

<li id="<%= attribute %>">
  <%= form.label attribute, label_text.html_safe %>
  <%= form.text_area attribute, options %>
</li>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
typus-3.1.0.rc9 app/themes/default/views/admin/templates/_text_with_ckeditor_and_assets.html.erb