stefanvermaas / yellow-text-rails

Yellow Text is an powerful, but really tiny text editor. And now it's available for your rails app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

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

  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

Yellow Text is an powerful, but really tiny text editor. And now it's available for your rails app

License:MIT License


Languages

Language:Ruby 100.0%