A small library that mirrors a textarea's content onto a <div>
to add some interesting functionality:
- query the height of the textarea content
- get the XY coordinates of the caret position
Demo.
open test/tests.html
$('#myText').textareaHelper();
$('#myText').textareaHelper(method);
Get's the textarea's content height.
Get's the XY coordinates of the textarea's caret relative to the textarea.
Destorys the helper mirror object. Use for cleanup.
MIT