Rails Admin- Problems with Gem Paperclip and ckeditor

Asked

Viewed 105 times

0

I integrated my application with Rails admin, and I put the ckeditor in one of the Forms, I followed all the steps of official documentation but it is not accepting my config.js, I have reduced the amount of options why it was not necessary to have all, but it is appearing the standard (full). And you’re not uploading photos either, so I tried Paperclip. Does anyone have any idea why this is happening, and how I can fix it?

1 answer

0


I managed to fix it. After putting the Gems in the Gemfile, and installing, I managed the ckeditor model, as it is in the tutorial. To make him pick up my settings, I put it in initializers/rails_admin.Rb

field :campo, :ck_editor, :ckeditor => { :toolbar => 'mini'} 

and also

field :campo, :ck_editor do config_js base_location + "page.js" end

put in initializers/Assets.Rb

Rails.application.config.assets.precompile += %w( ckeditor/* )

Browser other questions tagged

You are not signed in. Login or sign up in order to post.