src/js/extensions/table/table.js
function _snatchWysiwygCommand(commandWrapper) {
  const {command} = commandWrapper;

  if (!command.isWWType()) {
    return;
  }

  switch (command.getName()) {
  case 'AddRow':
    commandWrapper.command = wwAddRow;
    break;
  case 'AddCol':
    commandWrapper.command = wwAddCol;
    break;
  case 'RemoveRow':
    commandWrapper.command = wwRemoveRow;
    break;
  case 'RemoveCol':
    commandWrapper.command = wwRemoveCol;
    break;
  case 'AlignCol':
    commandWrapper.command = wwAlignCol;
    break;
  default:
  }
}
function _snatchWysiwygCommand(commandWrapper) {
  const {command} = commandWrapper;

  if (!command.isWWType()) {
    return;
  }

  switch (command.getName()) {
  case 'AddRow':
    commandWrapper.command = wwAddRow;
    break;
  case 'AddCol':
    commandWrapper.command = wwAddCol;
    break;
  case 'RemoveRow':
    commandWrapper.command = wwRemoveRow;
    break;
  case 'RemoveCol':
    commandWrapper.command = wwRemoveCol;
    break;
  case 'AlignCol':
    commandWrapper.command = wwAlignCol;
    break;
  default:
  }
}
function _snatchWysiwygCommand ( commandWrapper ) { const { command } = commandWrapper ; if ( ! command . isWWType ( ) ) { return ; } switch ( command . getName ( ) ) { case 'AddRow' : commandWrapper . command = wwAddRow ; break ; case 'AddCol' : commandWrapper . command = wwAddCol ; break ; case 'RemoveRow' : commandWrapper . command = wwRemoveRow ; break ; case 'RemoveCol' : commandWrapper . command = wwRemoveCol ; break ; case 'AlignCol' : commandWrapper . command = wwAlignCol ; break ; default : } }
Snatch wysiwyg command.
@param {{command: object}} commandWrapper - wysiwyg command wrapper
@private
Snatch wysiwyg command .