diff --git a/toolkit/content/widgets/textbox.xml b/toolkit/content/widgets/textbox.xml
index fc77a0c930fc..d821966c46e8 100644
--- a/toolkit/content/widgets/textbox.xml
+++ b/toolkit/content/widgets/textbox.xml
@@ -90,23 +90,6 @@
-
-
-
-
-
@@ -138,13 +121,6 @@
}
}
#endif
- str = this.getAttribute("spellcheck");
- if (str == "true") {
- // the problem is that we can't initialize the spell checker in the
- // constructor because not everything is initialized and the editor
- // will fail to create the inline spell checker object.
- setTimeout(this._delayedInitSpellCheck, 0, this)
- }
]]>
@@ -155,17 +131,6 @@
]]>
-
-
-
-
-
@@ -275,27 +240,13 @@
onpopupshowing="if (document.commandDispatcher.focusedElement != this.parentNode.firstChild)
this.parentNode.firstChild.focus();
this.parentNode._doPopupItemEnabling(this);"
- onpopuphiding="this.parentNode._doPopupItemDisabling(this);"
oncommand="var cmd = event.originalTarget.getAttribute('cmd'); if(cmd) { this.parentNode.doCommand(cmd); event.stopPropagation(); }">
-
-
-
-
-
-
-
-
-
-
-
@@ -316,62 +267,9 @@
children[i].setAttribute("disabled", "true");
}
}
-
- // -- spell checking --
- var textboxElt = popupNode;
- do {
- if (textboxElt.localName == "textbox")
- break;
- textboxElt = textboxElt.parentNode;
- } while (textboxElt);
- if (! textboxElt || textboxElt.localName != "textbox") {
- // can't find it, give up
- this._setNoSpellCheckingAllowed();
- return;
- }
- var spellui = textboxElt.spellCheckerUI;
- this.spellui = spellui;
-
- if (! spellui.canSpellCheck)
- {
- this._setNoSpellCheckingAllowed();
- return;
- }
-
- spellui.initFromEvent(document.popupRangeParent,
- document.popupRangeOffset);
-
- var enabled = spellui.enabled;
- document.getAnonymousElementByAttribute(this, "anonid",
- "spell-check-enabled").setAttribute("checked", enabled);
-
- var overMisspelling = spellui.overMisspelling;
- this._setMenuItemVisibility("spell-add-to-dictionary", overMisspelling);
- this._setMenuItemVisibility("spell-suggestions-separator", overMisspelling);
-
- // suggestion list
- var suggestionsSeparator = document.getAnonymousElementByAttribute(this,
- "anonid", "spell-add-to-dictionary");
- var numsug = spellui.addSuggestionsToMenu(popupNode, suggestionsSeparator, 5);
- this._setMenuItemVisibility("spell-no-suggestions", overMisspelling && numsug == 0);
-
- // dictionary list
- var dictmenu = document.getAnonymousElementByAttribute(this, "anonid",
- "spell-dictionaries-menu");
- var numdicts = spellui.addDictionaryListToMenu(dictmenu, null);
- this._setMenuItemVisibility("spell-dictionaries", enabled && numdicts > 1);
]]>