src/js/wysiwygCommands/tableAlignCol.js
function getRangeInformation(range, selectionMgr) {
  const $selectedCells = selectionMgr.getSelectedCells();
  let rangeInformation, startCell;

  if ($selectedCells.length) {
    rangeInformation = selectionMgr.getSelectionRangeFromTable($selectedCells.first().get(0),
      $selectedCells.last().get(0));
  } else {
    const {startContainer} = range;
    startCell = domUtil.isTextNode(startContainer) ? $(startContainer).parent('td,th')[0] : startContainer;
    rangeInformation = selectionMgr.getSelectionRangeFromTable(startCell, startCell);
  }

  return rangeInformation;
}
function getRangeInformation(range, selectionMgr) {
  const $selectedCells = selectionMgr.getSelectedCells();
  let rangeInformation, startCell;

  if ($selectedCells.length) {
    rangeInformation = selectionMgr.getSelectionRangeFromTable($selectedCells.first().get(0),
      $selectedCells.last().get(0));
  } else {
    const {startContainer} = range;
    startCell = domUtil.isTextNode(startContainer) ? $(startContainer).parent('td,th')[0] : startContainer;
    rangeInformation = selectionMgr.getSelectionRangeFromTable(startCell, startCell);
  }

  return rangeInformation;
}
function getRangeInformation ( range , selectionMgr ) { const $selectedCells = selectionMgr . getSelectedCells ( ) ; let rangeInformation , startCell ; if ( $selectedCells . length ) { rangeInformation = selectionMgr . getSelectionRangeFromTable ( $selectedCells . first ( ) . get ( 0 ) , $selectedCells . last ( ) . get ( 0 ) ) ; } else { const { startContainer } = range ; startCell = domUtil . isTextNode ( startContainer ) ? $ ( startContainer ) . parent ( 'td,th' ) [ 0 ] : startContainer ; rangeInformation = selectionMgr . getSelectionRangeFromTable ( startCell , startCell ) ; } return rangeInformation ; }
Get range information
@param {Range} range Range object
@param {object} selectionMgr Table selection manager
@returns {object}
Get range information