Skip to content

roadt/ueditor-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

rails integration for ueditor richedit (from baidu)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published