src/js/wysiwygCommands/table.js
function makeBody(col, row, data) {
  let body = '<tbody>';
  let index = col;

  for (let irow = 0; irow < row; irow += 1) {
    body += '<tr>';

    for (let icol = 0; icol < col; icol += 1) {
      body += '<td>';

      if (data) {
        body += data[index];
        index += 1;
      }

      body += '</td>';
    }

    body += '</tr>';
  }

  body += '</tbody>';

  return body;
}
function makeBody(col, row, data) {
  let body = '<tbody>';
  let index = col;

  for (let irow = 0; irow < row; irow += 1) {
    body += '<tr>';

    for (let icol = 0; icol < col; icol += 1) {
      body += '<td>';

      if (data) {
        body += data[index];
        index += 1;
      }

      body += '</td>';
    }

    body += '</tr>';
  }

  body += '</tbody>';

  return body;
}
function makeBody ( col , row , data ) { let body = '<tbody>' ; let index = col ; for ( let irow = 0 ; irow < row ; irow += 1 ) { body += '<tr>' ; for ( let icol = 0 ; icol < col ; icol += 1 ) { body += '<td>' ; if ( data ) { body += data [ index ] ; index += 1 ; } body += '</td>' ; } body += '</tr>' ; } body += '</tbody>' ; return body ; }
makeBody
make table body html string
@param {number} col column count
@param {number} row row count
@param {string} data cell data
@returns {string} html string
makeBody make table body html string