sferik/rails_admin — Issue #808: tons of problems with ckeditor in rails 3.1
Author: jdkealy
Created: 2011-10-31 08:53:18+00:00
State: open

Hi,

I'm having a bunch of issues with ckeditor.

This is what I'm doing to get it to load:

config.model PagePart do
edit do
field :content do
ckeditor do
true
end
end
end
end

Issue #1:

In development mode, this will ONLY load the content field. So I try adding the other fields like so:
config.model PagePart do
edit do
field :content do
ckeditor do
true
end
end
field :title
field :page
end
end

Here, title will load. However page loads as a string, and page_parts belong to pages. So question #1 is how would i tell it just to use ckeditor for this 1 field, but for all other fields proceed as normal? Is there possibly some way to just say 'use ckeditor for all text areas in all models?'

Issue #2:

Ckeditor won't load in production.

I have followed the instructions and added sprockets 2.0.0 to my Gemfile, but still no luck. Rails is trying to load /javascripts/ckeditor.js but the route is not found.

Any help with these?