Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 addFunction, nawte
E
 Events, nawte
F
 Functions, nawte
G
 getSelection, nawte
 getValue, nawte
I
 insertAfter, nawte
 insertBefore, nawte
N
 nawte
 nawte(constructor), nawte
O
 onchange, nawte
P
 processEachLine, nawte
R
 replaceSelection, nawte
S
 setValue, nawte
W
 wrapSelection, nawte
addFunction: function(name,
callback,
args)
The main concept of NAWTE, this is where you add functions (i.e.
getSelection: function()
Returns the current selection of the textarea
getValue: function()
Utility function.
insertAfter: function(insertText,
isLast)
Insert text after the current selection.
insertBefore: function(insertText,
isLast)
Insert text before the current selection.
nawte is a class to help you put together your own WYSIWYM editor.
Creates a new nawte object.
Fired when the content of the textarea is changed.
processEachLine: function(callback,
isLast)
Will process each lines of the selection with “callback”.
replaceSelection: function(newText,
isLast)
Replace the current selection with newText.
setValue: function(text)
Utility function.
wrapSelection: function(wrapper,
isLast)
Wrap the selection with wrapper text