WwMergedTableSelectionManager(wwe)

Class WwMergedTableSelectionManager

new WwMergedTableSelectionManager(wwe)

Creates an instance of WwMergedTableSelectionManager.

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

onDragEnd()

clear table data in cache on drag end

onDragStart(selectionStart)

cache table data on drag start

Parameters:
Name Type Description
selectionStart HTMLElement

start element

styleToSelectedCells(onStyle, optionsopt)

Style to selected cells.

Parameters:
Name Type Attributes Description
onStyle function

function for styling

options Object <optional>

options to be passed into onStyle