Skip to content

vladson/bootstrap-wysiwyg-rails

Repository files navigation

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

About

Bootstrap WYSIWYG gem for rails

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages