With default options:
$('#area').taby();

<textarea id="area"></textarea>
- You can to use the following actions:
- tab;
- shift + tab;
- delete;
- backspace;
- arrow left;
- arrow right.
Public functions:
from: to: select
to: goTo
backspace: deleter: left: right: space: set
Changing the settings globally:
$.fn.taby.defaults.space = 2;
$.fn.taby.defaults.backspace = false;
- You can change any option mention the scope $.fn.taby.defaults. + option_name;
- This setup must be called before you bind the Taby, of course.
Default options:
backspace : true
Enables removal (end to begin) of a whole tabulation.
deleter   : true
Enables removal (begin to end) of a whole tabulation.
left      : true
Enables jump tabulation using left arrow.
right     : true
Enables jump tabulation using right arrow.
space     : 4
Change the number of spaces given to tabulation.
Public functions:
$('#area').taby('goTo', 10);
Goes to position 10 of the text.
$('#area').taby('select', 1, 10);
Select the texto from postion 1 to 10. If you don't pass the second parameter this will be the text length;
$('#area').taby('set', { space: 2 });
Changes the dynamic properties specified.