WwTableSelectionManager

WwTableSelectionManager

Constructor

new WwTableSelectionManager(wwe)

Parameters:
Name Type Description
wwe WysiwygEditor

WysiwygEditor instance

Members

static this.name :string

Name property

Methods

destroy()

Destroy.

getSelectionRangeFromTable(selectionStart, selectionEnd) → {Object}

Get selection coordinate by current selection

Parameters:
Name Type Description
selectionStart HTMLElement

start element

selectionEnd HTMLElement

end element

Returns:
Object

highlightTableCellsBy(selectionStart, selectionEnd)

Highlight selected table cells

Parameters:
Name Type Description
selectionStart HTMLElement

start element

selectionEnd HTMLElement

end element

removeClassAttrbuteFromAllCellsIfNeed()

Remove '.te-cell-selected' class from all of table Cell

setTableSelectionTimerIfNeed(selectionStart)

Set setTimeout and setInterval timer execution if table selecting situation

Parameters:
Name Type Description
selectionStart HTMLElement

Start element

styleToSelectedCells(onStyle)

Style to selected cells.

Parameters:
Name Type Description
onStyle function

function for styling