How to configure CKEditor in Rails 3.1 (gem + Asset Pipeline)

后端 未结 5 544
温柔的废话
温柔的废话 2021-01-02 05:31

I\'ve successfully configured the ckeditor gem from https://github.com/galetahub/ckeditor on my Rails 3.1 app. My problem now is that I can\'t figure out how to configure th

5条回答
  •  借酒劲吻你
    2021-01-02 06:03

    So I got this working yesterday for Rails 4.0 rc1 and Ruby 2.0 by leaving out the CKEDITOR.editorConfig = function( config ){ } part.

    My final code in app/assets/javascripts/ckedtior/config.js was

      CKEDITOR.config.toolbar= [
        { name: 'basicstyles', items: [ 'Bold', 'Italic' ] }
      ]
    

提交回复
热议问题