rails-admin with rails-ckeditor problems for embedded forms

148 views
Skip to first unread message

jdkealy

unread,
Oct 24, 2011, 5:00:16 PM10/24/11
to rails_admin
Hi,

I set up ckeditor in my app following the github page's instructions
and using rails-ckeditor.

To use ckeditor for a field, basically did the following:

config.model MyModel do
edit do
field :description, :text do
ckeditor do
true
end
end
end
end

based on: http://stackoverflow.com/questions/4572077/how-to-enable-ckeditor-on-a-field-in-rails-admin

This works great when i edit a model directly.

However, in a habtm or a has_many, if I click "add new" i get a popup
with a textarea without ckeditor.

Any ideas how i can get ckeditor in the popup form?

Thanks!

Benoit Bénézech

unread,
Oct 27, 2011, 8:14:17 AM10/27/11
to rails...@googlegroups.com
I removed the possibility to use CKeditor in modals.
The issue is that CKeditor goes nuts when removing the parent dom. It's very unstable when used with AJAX. I spent half a day trying to fix it and gave up.
If you're JS savvy, please have a look at it, but as far as I'm concerned, it's a won't-fix, sorry.
Reply all
Reply to author
Forward
0 new messages