Rails_admin- ckeditor config.js 既没有覆盖也没有回形针 运行

Rails_admin- ckeditor config.js is not overwriting nor paperclip running

我将我的应用程序与 rails_admin, and I put the ckeditor in one of the forms, I followed all the steps of the official documentation on github 集成,但它不接受我的 config.js,我减少了选项的数量,因为它没有必要拥有所有但它显示默认(完整) .而且也没有上传照片,我尝试了回形针。任何人都知道为什么会这样,我该如何解决? 我正在使用 rails 5.1

我解决了。将 gems 放入 Gemfile 并安装后,我生成了 ckeditor 模型,如教程中所示。为了让它接受我的设置,我把它放在 initializers/rails_admin.rb

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

还有

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

我放在了initializers/assets.rb

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