To use CKEDitor in Active Admin, you need to do four things:
gem 'ckeditor'
for rails 3.2 use this
gem "ckeditor", "3.7.0.rc3"
config.register_javascript 'ckeditor/ckeditor.js'
ActiveAdmin.register User do form :partial => "user_form"
= semantic_form_for [:admin, @user] do |f| = f.input :description, :input_html => {:class => :ckeditor}
4.a If you don't want to use haml-syntax, you could also do this (in admin/users/_user_form.html.erb)
<%= semantic_form_for [:admin, @page] do |f| %> <%= f.input :title %> <%= f.input :body, :input_html => {:class => :ckeditor} %> <%= f.submit %> <% end %>
Presto! You're done :-)
There was an error while loading. Please reload this page.