搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to get Spellcheck to check single-line entries?

  • 3 回覆
  • 1 有這個問題
  • 6 次檢視
  • 最近回覆由 cor-el

more options

I recently had to create a new profile to fix a problem with my old FF. But now the new profile, being new, does not spellcheck single-line entries (as in the "question" above.) But does spellcheck text entry boxes (such as the one I am typing in right now.)

I know there is an about:config parameter change to make this happen, but I can't find it documented anywhere. Is there an about:config document? Failing that can someone tell me what change I need to make?

layout.spellcheckDefault;1

I recently had to create a new profile to fix a problem with my old FF. But now the new profile, being new, does not spellcheck single-line entries (as in the "question" above.) But does spellcheck text entry boxes (such as the one I am typing in right now.) I know there is an about:config parameter change to make this happen, but I can't find it documented anywhere. Is there an about:config document? Failing that can someone tell me what change I need to make? layout.spellcheckDefault;1

被選擇的解決方法

The unofficial MozillaZine site has great documentation on many of the preferences in about:config. For that one:

http://kb.mozillazine.org/Layout.spellcheckDefault

So this should work:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste SPEL and pause while the list is filtered

(3) Double-click the layout.spellcheckDefault preference and change it from 1 to 2 to spell check single-line controls as well as multi-line controls.

Note: this should turn spell checking on by default, but sites can still turn it off.

從原來的回覆中察看解決方案 👍 1

所有回覆 (3)

more options

選擇的解決方法

The unofficial MozillaZine site has great documentation on many of the preferences in about:config. For that one:

http://kb.mozillazine.org/Layout.spellcheckDefault

So this should work:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste SPEL and pause while the list is filtered

(3) Double-click the layout.spellcheckDefault preference and change it from 1 to 2 to spell check single-line controls as well as multi-line controls.

Note: this should turn spell checking on by default, but sites can still turn it off.

more options

Thanks for the quick response.

more options

Note that you can also find helpful comments in the Firefox source code for a lot of prefs.

876 // this will automatically enable inline spellchecking (if it is available) for
877 // editable elements in HTML
878 // 0 = spellcheck nothing
879 // 1 = check multi-line controls [default]
880 // 2 = check multi/single line controls
881 pref("layout.spellcheckDefault", 1);