YellowText - Rails
Editing text shouldn't be a pain. It should be simple. It should be pretty. With Yellow Text it is.
This lightweight jQuery plugin can be used to make your text editing proces a lot easier and more fun. The text editor only contains the most basic functions you need for editing text.
For more information about the plugin, you should check the official repo.
Installation
Add this line to your application's Gemfile:
gem 'yellow-text-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install yellow-text-rails
Usage
Step 1: Make sure you call the plugin by it's name
$("#js-your-html-element").texteditor();
Step 2: Make sure you're calling the javascript file in your application.js and the css file in your application.css:
//= require yellow-text
and *= require yellow-text
Step 3: Annnnnnnnnnd... finished! Wasn't that hard huh?!
Beer-ware license
As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request