Bug 591780 - Part 1: Backend support for adding and removing spell checker dictionaries at runtime; r=ehsan

This commit is contained in:
Jesper Kristensen
2011-09-05 18:44:34 -04:00
parent f0b910b9ce
commit f0d605f6ee
26 changed files with 919 additions and 162 deletions

View File

@@ -321,10 +321,8 @@ nsContextMenu.prototype = {
var onMisspelling = InlineSpellCheckerUI.overMisspelling;
this.showItem("spell-check-enabled", canSpell);
this.showItem("spell-separator", canSpell || this.onEditableArea);
if (canSpell) {
document.getElementById("spell-check-enabled")
.setAttribute("checked", InlineSpellCheckerUI.enabled);
}
document.getElementById("spell-check-enabled")
.setAttribute("checked", canSpell && InlineSpellCheckerUI.enabled);
this.showItem("spell-add-to-dictionary", onMisspelling);