WwMergedTableSelectionManager

WwMergedTableTableSelectionManager

Constructor

new WwMergedTableSelectionManager(wwe)

Parameters:
Name Type Description
wwe WysiwygEditor

WysiwygEditor instance

Methods

hasSelectedBothThAndTd($selectedCells) → {boolean}

Whether has selected both TH and TD.

Parameters:
Name Type Description
$selectedCells jQuery

selected cells jQuery element

Returns:
boolean

highlightTableCellsBy(selectionStart, selectionEnd)

Highlight selected table cells

Parameters:
Name Type Description
selectionStart HTMLElement

start element

selectionEnd HTMLElement

end element

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