Rails Admin- Problems with gem paperclip and ckeditor

0

I integrated my application with rails admin, and I placed the ckeditor in one of the forms, I followed all the steps of official documentation it is not accepting my config.js, I reduced the amount of options because it was not necessary to have all but it is showing the default (full). And you're also not uploading photos, I tried the paperclip . Anyone have any idea why this is happening, and how can I resolve it?

    
asked by anonymous 29.08.2017 / 16:19

1 answer

0

I managed to resolve. After putting the gems in the Gemfile, and installing, I generated the ckeditor model, as it is in the tutorial. To make it pick up my settings, I put it in the 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/* )
    
14.09.2017 / 13:39