WwListManager(wwe)

Class WwListManager

new WwListManager(wwe)

Creates an instance of WwListManager.

Parameters:
Name Type Description
wwe WysiwygEditor

WysiwygEditor instance

Methods

adjustRange(startContainer, endContainer, startOffset, endOffset, listNode)

adjust range for list node (OL/UL)
according to origin startContainer and endContainer

Parameters:
Name Type Description
startContainer node

startContainer

endContainer node

endContainer

startOffset number

startOffset

endOffset number

endOffset

listNode array

node array

createListInTable(range, listType) → {array}

make listNode (OL or UL)

Parameters:
Name Type Description
range range

range

listType staring

UL, OL, TASK

Returns:
array -

childNodes of list node (OL/UL)

isAvailableMakeListInTable() → {boolean}

Check whether is available to make List in table.

Returns:
boolean -
  • li element