Core Docs | Additional Modules Docs

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();