Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 715 Bytes

README.md

File metadata and controls

40 lines (24 loc) · 715 Bytes

ueditor-rails

Rails integration for ueditor richedit (from baidu)

Installation

  1. add 'ueditor-rails' gems to Gemfile, and bundle install

  2. merge uedtior-rails migrations to your app

    bundle exec rake ueditor:install:migrations

  3. apply migrations

    bundle exec rake db:mgirate

  4. add ueditor routes in your config/routes.rb

    mount Ueditor::Engine => '/ueditor'

  5. add ueditor.js into your app application.js file or other asset piple manifest file. as following

    //=require ueditor

  6. use it!

    <script type="text/javascript">
    UE.getEditor('your-texta-id', { some-option-key: somevalue})
    </script>
    
  7. that's all.

License

MIT License