Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
img
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)

About

SetCursorLine jQuery Plugin - set cursorline for textarea

Resources

License

Packages

No packages published