Sha256: 5acd1cdda15eedbea193953de6abfa9747e153436e5993301555eb5acc13683d

Contents?: true

Size: 773 Bytes

Versions: 5

Compression:

Stored size: 773 Bytes

Contents

<% content_for :javascripts do %>
  <%= javascript_include_tag 'ckeditor/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

5 entries across 5 versions & 1 rubygems

Version Path
typus-3.1.0.rc14 app/views/admin/templates/_text_with_ckeditor_and_assets.html.erb
typus-3.1.0.rc13 app/themes/default/views/admin/templates/_text_with_ckeditor_and_assets.html.erb
typus-3.1.0.rc12 app/themes/default/views/admin/templates/_text_with_ckeditor_and_assets.html.erb
typus-3.1.0.rc11 app/themes/default/views/admin/templates/_text_with_ckeditor_and_assets.html.erb
typus-3.1.0.rc10 app/themes/default/views/admin/templates/_text_with_ckeditor_and_assets.html.erb