Skip to content

Instantly share code, notes, and snippets.

@joshcrews
Created October 3, 2011 15:31
Show Gist options
  • Save joshcrews/1259380 to your computer and use it in GitHub Desktop.
Save joshcrews/1259380 to your computer and use it in GitHub Desktop.
app/views/admin/_text_with_ckeditor.html.erb
<% content_for :javascripts do %>
<%= javascript_include_tag "/javascripts/ckeditor/ckeditor.js" %>
<%= stylesheet_link_tag "/javascripts/ckeditor/contents.css" %>
<% end %>
<li id="<%= attribute_id %>">
<%= form.label attribute, label_text %>
<%= form.cktext_area attribute, :toolbar => 'Easy', :width => 800, :height => 400 %>
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment