Apps and development tools - jQuery Plugins


Textarea Tabhandler

The modal plugin provides TAB handling for textareas. TABs are inserted at the beginning of a line when the TAB key is typed. TABs are removed from the beginning of the line (if possible) when SHIFT-TAB is typed.

Inserting and removing TABs is also supported for a selection of multiple lines.

Includes

Static include:

<tml:include designdb="@afw" ref="include:jquery" o_jquery-plugins="tabhandler"/>

Dynamic Include:

requirejs(["jquery", "jquery-tabhandler"], function(){...})

HTML

<texrarea id="myTa">...</textarea>

Usage

The modal plugin provides tab handling for textareas.

$("#myTa").tabhandler()