Skip to content

ilanbm/textarea-helper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textareaHelper

A small library that mirrors a textarea's content onto a div to add some interesting functionality.

Demo.

Running the tests

open test/tests.html

Usage

$('#myText').textareaHelper();
$('#myText').textareaHelper(method);

Methods

.textareaHelper('height')

Get's the textarea's content height.

.textareaHelper('caretPos')

Get's the XY coordinates of the textarea's caret relative to the textarea.

.textareaHelper('destroy')

Destorys the helper mirror object. Use for cleanup.

License

MIT

About

A small helper library for textareas.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.5%
  • CSS 2.5%