logo

/repo|v1.4.10

Class

new WwTextObject(wwe, range)wwTextObject.jsline 18

Class WwTextObject

PARAMETERS
NameTypeDescription

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
NameTypeDescription

offset

number

Offset to peek

RETURNS:
{

string

}

replaceContent(content)wwTextObject.jsline 106

Replace current selection content to given text

PARAMETERS
NameTypeDescription

content

string

Text content

setEndBeforeRange(range)wwTextObject.jsline 84

setEnd range on start

PARAMETERS
NameTypeDescription

range

Range

Range object

setRange(range)wwTextObject.jsline 50

Set _range object to given range object

PARAMETERS
NameTypeDescription

range

Range

Range object

Resizable