TextEditBox Class
Text-edit box is a widget that marks up text with HTML and special span tags for code markup, e.g. function, string, keyword, etc.
Constructor
Methods
_makeMarkup
(
String
private
-
tagName
-
empty
-
text
-
attrs
Helper function for IE branch of addMarkup().
Returns:
addMarkup
(
Void
-
tagName
-
empty
-
[attrs]
Adds markup to selected text.
Parameters:
-
tagName
String -
empty
Booleanwhether element is empty (e.g. img element)
-
[attrs]
Object optionaloptional object containing add'l element attributes
Returns:
Void:
Properties
editBox
HTMLElement
Text-edit textarea element
Default: "editbox"
spanButtons
Array
Data for the code markup buttons.