new WwTextObject(wwe, range)wwTextObject.jsline 18
Class WwTextObject
PARAMETERS
Name Type Description wwe
WysiwygEditor
wysiwygEditor
range
Range
Range object
Instance Methods
deleteContent()wwTextObject.jsline 123
Delete current selection content
expandEndOffset()wwTextObject.jsline 72
Expand end offset by one
expandStartOffset()wwTextObject.jsline 61
Expand start offset by one
getTextContent()wwTextObject.jsline 98
Get text content
RETURNS:
{string
}
peekStartBeforeOffset(offset)wwTextObject.jsline 134
Peek previous element's content
PARAMETERS
Name Type Description offset
number
Offset to peek
RETURNS:
{string
}
replaceContent(content)wwTextObject.jsline 106
Replace current selection content to given text
PARAMETERS
Name Type Description content
string
Text content
setEndBeforeRange(range)wwTextObject.jsline 84
setEnd range on start
PARAMETERS
Name Type Description range
Range
Range object
setRange(range)wwTextObject.jsline 50
Set _range object to given range object
PARAMETERS
Name Type Description range
Range
Range object