diff --git a/mozilla/editor/ui/dialogs/content/EdInsertTable.js b/mozilla/editor/ui/dialogs/content/EdInsertTable.js index 0366c81a3bb..fc5bc2cc917 100644 --- a/mozilla/editor/ui/dialogs/content/EdInsertTable.js +++ b/mozilla/editor/ui/dialogs/content/EdInsertTable.js @@ -238,8 +238,8 @@ function onOK() } try { - // false means don't delete selected text when inserting - editorShell.InsertElementAtSelection(tableElement, false); + // true means delete selection when inserting + editorShell.InsertElementAtSelection(tableElement, true); } catch (e) { dump("Exception occured in InsertElementAtSelection\n"); }