No commit activity in last 3 years
No release in over 3 years
Bootstrap wysiwyg gem for rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 3.1
>= 0

Runtime

>= 3.1
 Project Readme

Bootstrap Wysiwyg Rails

Bootstrap-wysihtml5 is a javascript plugin that makes it easy to create simple, beautiful wysiwyg editors with the help of wysihtml5 and Twitter Bootstrap.

For customizing and more - look at js repo

Installation

Add this line to your application's Gemfile:

gem 'bootstrap-wysiwyg-rails'

And then execute:

$ bundle install

Be sure to have all dependencies in your project. They include

jquery
twitter-bootstrap
jquery.hotkeys

They where not included in gem dependencies because you already may have them in your assets somehow.

Usage

Require bootstrap-wysiwyg in your app/assets/application.js file

//= require bootstrap-wysiwyg

Initialize it on element

$('#editor').wysiwyg()

Contributing

  1. Fork it
  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