If I understand you correctly, the following will do it in Firefox (note: apparently the document must be loaded before this command can be executed. See comments below):
document.execCommand("enableInlineTableEditing", null, false);
See also this question: Javascript, Firefox: how to disable the browser specific cell controls?