WwTableSelectionManager(wwe)

Class WwTableSelectionManager

new WwTableSelectionManager(wwe)

Creates an instance of WwTableSelectionManager.

Parameters:
Name Type Description
wwe WysiwygEditor

WysiwygEditor instance

Methods

createRangeBySelectedCells()

Create selection by selected cells and collapse that selection to end

destroy()

Destroy.

getSelectedCells() → {jQuery}

gets selected cells

Returns:
jQuery -

selected cells

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, optionsopt)

Style to selected cells.

Parameters:
Name Type Attributes Description
onStyle function

function for styling

options Object <optional>

options to be passed into onStyle