jquery_caret_rails

Lightweight plugin to allow you to move the caret (or cursor) position in an element.

By exposing three jQuery.fn methods you can easily move a a caret to any position you like:

Installation

Add it to your Gemfile:

gem 'jquery_caret_rails', '~> 1.0.0'

Usage

You can add jquery_caret_rails to your application.js file using a require statement like this:

//= require jquery.caret

License

The gem is still under active development and although it is publicly available, we won't be held responsible if you install it in your own project and something goes wrong. Use at your own risk.

License under the MIT license.

Authors

  1. This gem: Thomas Barker
  2. Inspiration from: piton [https://github.com/piton/jquery-caret-rails]
  3. Original gem: Changok Kim @okidokim [https://github.com/changok/jquery-caret-rails]
  4. jquery-caret: Luke Morton, it's on github