Core Docs | Additional Modules Docs

sb.forms.textarea.allowTabs


@Description: Allows the user to use tabs in a textarea
from http://www.junasoftware.com/blog/handling-tabs-in-textareas-across-browsers.aspx
needs to be edited to use rest of toolkit
@File: forms/textarea/allowTabs.js
@Param: String textarea The id or a reference to the textarea which you want to allow tabs on.
@Example:
$('#myTextArea').events({
        keydown : sb.forms.textarea.allowTabs
    });

sb.forms.textarea.textBling


@Description: Allows tagging of selected text in textareas with custom tags and properties
@File: forms/textarea/textBling.js
@Param: element editBar A reference to a DOM element that hold the buttons which add the tags
Param: element editBox A reference to a textarea that the editing is occurring in
@Example:
var myBling = new sb.forms.textarea.textBling('#editBar', '#editBox');
        
customTags = ["q, e.g. [q]here is some quoted text[/q] - adds quote bubble around text", "box, e.g.[box]text in a box[/box] - great for code chunks"];

myBling.custom(customTags);

myBling.basic();