add: if (deletePlaceholder && tableElement && tableElement.nextSibling) {  editorShell.DeleteElement(tableElement.nextSibling); }  editorShell.EndBatchChanges();  
context: function onOK(){  if (ValidateData())  {    editorShell.CloneAttributes(tableElement, globalElement);    // Create necessary rows and cells for the table    // AFTER BUG 30378 IS FIXED, DON'T INSERT TBODY!    var tableBody = editorShell.CreateElementWithDefaults("tbody");    if (tableBody)    {      tableElement.appendChild(tableBody);      // Create necessary rows and cells for the table      //dump("Rows = "+rows+"  Columns = "+columns+"\n");      for (var i = 0; i < rows; i++)      {        var newRow = editorShell.CreateElementWithDefaults("tr");        if (newRow)        {          tableBody.appendChild(newRow);          for (var j = 0; j < columns; j++)          {            var newCell = editorShell.CreateElementWithDefaults("td");            if (newCell)            {              newRow.appendChild(newCell);            }          }        }      }    }    try {      // Don't delete selected text when inserting      editorShell.InsertElementAtSelection(tableElement, false);    } catch (e) {      dump("Exception occured in InsertElementAtSelection\n");    }    SaveWindowLocation();    return true;  }  return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e65395b257e35e30db1a7988b55865674e0776b0/EdInsertTable.js/clean/editor/ui/dialogs/content/EdInsertTable.js