Skip to content

Latest commit

 

History

History
executable file
·
34 lines (23 loc) · 633 Bytes

File metadata and controls

executable file
·
34 lines (23 loc) · 633 Bytes

BootstrapMarkdownEditor Rails

A Ruby gem version of bootstrap-markdown-editor for the Rails asset pipeline.

Installation

Add to your Gemfile:

gem 'ace-rails-ap'
gem 'bootstrap-markdown-editor-rails'

You’ll also need Bootstrap 3, jQuery.

Usage

Require the CSS with Sprockets:

/*= require bootstrap-markdown-editor */

Sprockets require the JS too:

//= require ace-rails-ap
//= require ace/theme-tomorrow
//= require ace/mode-markdown
//= require ace/ext-language_tools
//= require bootstrap-markdown-editor

Enjoy!