Sha256: ed46bd2287c65b74ee1781f76a76fd702d9f7a2b0c64627de667f8e007181219
Contents?: true
Size: 1.79 KB
Versions: 1
Compression:
Stored size: 1.79 KB
Contents
# Medium Editor for Rails [![Gem Version](https://badge.fury.io/rb/medium-editor-rails.png)](http://badge.fury.io/rb/medium-editor-rails) [![Code Climate](https://codeclimate.com/github/marjinal1st/medium-editor-rails.png)](https://codeclimate.com/github/marjinal1st/medium-editor-rails) [![Dependency Status](https://gemnasium.com/marjinal1st/medium-editor-rails.svg)](https://gemnasium.com/marjinal1st/medium-editor-rails) This gem integrates [Medium Editor](https://github.com/daviferreira/medium-editor) with Rails asset pipeline. ## Version The latest version of Medium Editor bundled by this gem is [1.9.13](https://github.com/daviferreira/medium-editor/releases) ## Installation Include **medium-editor-rails** in your Rails project's Gemfile: ```ruby gem 'medium-editor-rails' ``` And then execute: ```bash $ bundle install ``` ## Configuration Include javascript file in **app/assets/javascripts/application.js**: ```javascript //= require medium-editor ``` Include stylesheet file on **app/assets/stylesheets/application.css**: ```scss *= require medium-editor/medium-editor ``` You can also include themes from **themes** folder, example: ```scss *= require medium-editor/themes/flat ``` ## Using Medium Editor with Rails You need to initialize Medium Editor with any selector of div, example: ```html <div class="editable"></div> <script>var editor = new MediumEditor('.editable');</script> ``` For extra options, visit this page: https://github.com/daviferreira/medium-editor#initialization-options ## Contributing 1. Fork it ( http://github.com/marjinal1st/medium-editor-rails/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
medium-editor-rails-0.13.1 | README.md |