/simditor-rails

Ruby assets wrapper for a simple editor designed by mycolorway

Primary LanguageRubyMIT LicenseMIT

simditor-rails gem

simditor-rails gem is a Rails assets wrapper of Simditor, ready to drop right into your Sass powered applications.

Installation

gem 'simditor-rails'

Usage

in application.js

//= require simditor

in application.css

 *= require simditor

init after dom load

$ ->
  editor = new Simditor(
    textarea: $('.simditor')
    upload: true
    toolbar: ['bold', 'italic', 'underline', '|', 'ol', 'ul', 'blockquote', 'code', '|', 'link', 'image', '|', 'indent', 'outdent', '|', 'hr', 'table']
  )