Skip to content
SetCursorLine jQuery Plugin - set cursorline for textarea
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
example
img
libs
src
test
.gitignore
.jshintrc
CONTRIBUTING.md
Gruntfile.js
LICENSE
README.md
package.json
set-cursor-line.jquery.json

README.md

SetCursorLine jQuery Plugin

Build Status

:set cursorline (underline) for textarea

  • Use CSS3 linear-gradient
  • Keydown and click event support

set-cursor-line

Requirements

Usage

$("#id").setCursorLine({
  defaultLineHeight: 16
, cursorLineColor:   "black"
});
// with set-number
$("#id")
  .setNumber({
    ...
  })
  .setCursorLine({
  , cursorLineColor: "red"
  });

see also example/index.html

Development

% npm install grunt

# uglify
% grunt uglify #=> dist/set-cursor-line.min.js will be generated

# test
% grunt qunit # or see `test/set-cursor-line.html` via browser

Todo

  • Add more CorsorLine style support (without underline).
  • Fix normal line-height problem in Google Chrome.
  • Add zoom support of browser.
  • Add CSS3 image fallback ?

Histroy

  • 20160202 Fix background style issue (0.0.2)
  • 20140210 Fix defaultLineHeight bug
  • 20140203 Initial Release (0.0.1)

Lincense

MIT License (see LICENSE)

You can’t perform that action at this time.