diff --git a/mozilla/editor/ui/dialogs/content/EdInsertTable.js b/mozilla/editor/ui/dialogs/content/EdInsertTable.js index c347c810bf8..4b28e40b6c4 100644 --- a/mozilla/editor/ui/dialogs/content/EdInsertTable.js +++ b/mozilla/editor/ui/dialogs/content/EdInsertTable.js @@ -151,10 +151,9 @@ function onOK() } } } + // Don't delete selected text when inserting + editorShell.InsertElement(tableElement, false); + return true; } - - // Don't delete selected text when inserting - editorShell.InsertElement(tableElement, false); - - return true; + return false; }