src/js/wysiwygCommands/tableRemoveCol.js
function focusToCell(sq, $cell, tableMgr) {
  const nextFocusCell = $cell.get(0);

  if ($cell.length && $.contains(document, $cell)) {
    const range = sq.getSelection();
    range.selectNodeContents($cell[0]);
    range.collapse(true);
    sq.setSelection(range);

    tableMgr.setLastCellNode(nextFocusCell);
  }
}
function focusToCell(sq, $cell, tableMgr) {
  const nextFocusCell = $cell.get(0);

  if ($cell.length && $.contains(document, $cell)) {
    const range = sq.getSelection();
    range.selectNodeContents($cell[0]);
    range.collapse(true);
    sq.setSelection(range);

    tableMgr.setLastCellNode(nextFocusCell);
  }
}
function focusToCell ( sq , $cell , tableMgr ) { const nextFocusCell = $cell . get ( 0 ) ; if ( $cell . length && $ . contains ( document , $cell ) ) { const range = sq . getSelection ( ) ; range . selectNodeContents ( $cell [ 0 ] ) ; range . collapse ( true ) ; sq . setSelection ( range ) ; tableMgr . setLastCellNode ( nextFocusCell ) ; } }
Focus to given cell
@param {Squire} sq - Squire instance
@param {jQuery} $cell - jQuery wrapped table cell
@param {object} tableMgr - Table manager instance
Focus to given cell