Integrating CKEditor with Rails 3.2

后端 未结 12 1688
一整个雨季
一整个雨季 2021-02-02 04:27

Similar to Integrating CKEditor with Rails 3.1 Asset Pipline

I am trying to integrate ckeditor with my rails 3.2 application.<

12条回答
  •  没有蜡笔的小新
    2021-02-02 05:03

    The issue of ckeditor with rails 3.2 is javascript library path not loading for production environment so we need to modify path correctly. I did following steps :

    In application.html.erb

     <%= javascript_include_tag "application" , '/assets/ckeditor/ckeditor.js', '/assets/ckeditor/init.js'%>
    

    In production.rb file

     config.assets.precompile += %w(ckeditor/init.js)
    

    run assets

    rake assets:precompile:all
    

    These steps worked for me with rails version 3.2.8

提交回复
热议问题