src/js/wysiwygCommands/tableAddRow.js
function getSelectedRowsLength(wwe) {
  const selectionMgr = wwe.componentManager.getManager('tableSelection');
  const $selectedCells = selectionMgr.getSelectedCells();
  let length = 1;

  if ($selectedCells.length > 1) {
    const first = $selectedCells.first().get(0);
    const last = $selectedCells.last().get(0);
    const range = selectionMgr.getSelectionRangeFromTable(first, last);
    length = range.to.row - range.from.row + 1;
  }

  return length;
}
function getSelectedRowsLength(wwe) {
  const selectionMgr = wwe.componentManager.getManager('tableSelection');
  const $selectedCells = selectionMgr.getSelectedCells();
  let length = 1;

  if ($selectedCells.length > 1) {
    const first = $selectedCells.first().get(0);
    const last = $selectedCells.last().get(0);
    const range = selectionMgr.getSelectionRangeFromTable(first, last);
    length = range.to.row - range.from.row + 1;
  }

  return length;
}
function getSelectedRowsLength ( wwe ) { const selectionMgr = wwe . componentManager . getManager ( 'tableSelection' ) ; const $selectedCells = selectionMgr . getSelectedCells ( ) ; let length = 1 ; if ( $selectedCells . length > 1 ) { const first = $selectedCells . first ( ) . get ( 0 ) ; const last = $selectedCells . last ( ) . get ( 0 ) ; const range = selectionMgr . getSelectionRangeFromTable ( first , last ) ; length = range . to . row - range . from . row + 1 ; } return length ; }
get number of selected rows
@param {WysiwygEditor} wwe - wysiwygEditor instance
@returns {number} - number of selected rows
@ignore
get number of selected rows