From d91df1e9cf8b457a0bcd327c96900ef4e1c3c4da Mon Sep 17 00:00:00 2001
From: "bugzilla%arlen.demon.co.uk"
Date: Sun, 24 Sep 2006 23:38:43 +0000
Subject: [PATCH] Bug 338318 UI for spellcheck in browser window (form fields)
p=me r=neil sr=jag
git-svn-id: svn://10.0.0.236/trunk@212274 18797224-902f-48f8-a5cc-f745e15eee43
---
.../locale/en-US/cs_nav_prefs_navigator.xhtml | 9 +-
mozilla/suite/browser/browser-prefs.js | 7 ++
.../common/contentAreaContextOverlay.xul | 30 ++++++
mozilla/suite/common/nsContextMenu.js | 100 ++++++++++++++++--
mozilla/suite/common/pref/pref-languages.xul | 16 ++-
.../chrome/common/contentAreaCommands.dtd | 10 +-
.../common/help/cs_nav_prefs_navigator.xhtml | 9 +-
.../chrome/common/pref/pref-languages.dtd | 6 ++
.../classic/communicator/communicator.css | 6 ++
.../modern/communicator/communicator.css | 6 ++
mozilla/xpfe/bootstrap/browser-prefs.js | 7 ++
mozilla/xpfe/global/jar.mn | 1 +
12 files changed, 196 insertions(+), 11 deletions(-)
diff --git a/mozilla/extensions/help/resources/locale/en-US/cs_nav_prefs_navigator.xhtml b/mozilla/extensions/help/resources/locale/en-US/cs_nav_prefs_navigator.xhtml
index 94dcff367ba..2c9a50367fe 100644
--- a/mozilla/extensions/help/resources/locale/en-US/cs_nav_prefs_navigator.xhtml
+++ b/mozilla/extensions/help/resources/locale/en-US/cs_nav_prefs_navigator.xhtml
@@ -177,7 +177,8 @@
The Languages preferences panel allows you to choose the languages and
- character encoding for displaying web pages:
+ character encoding for displaying web pages and choose if and how your typing
+ is spell checked:
- Languages for Web Pages:
@@ -198,6 +199,12 @@
pages.
+ Spelling:
+
+ - When typing check my spelling: Use the drop-down
+ list to select if and how your typing is spell checked.
+
+
[Return to beginning of section]
diff --git a/mozilla/suite/browser/browser-prefs.js b/mozilla/suite/browser/browser-prefs.js
index 091cba75593..00c68b519fd 100644
--- a/mozilla/suite/browser/browser-prefs.js
+++ b/mozilla/suite/browser/browser-prefs.js
@@ -190,6 +190,13 @@ pref("news.directory", "");
pref("browser.editor.disabled", false);
pref("spellchecker.dictionary", "");
+// this will automatically enable inline spellchecking (if it is available) for
+// editable elements in HTML
+// 0 = spellcheck nothing
+// 1 = check multi-line controls [default]
+// 2 = check multi/single line controls
+pref("layout.spellcheckDefault", 1);
+
// App-specific update preferences
// Whether or not app updates are enabled - false initally for SeaMonkey
diff --git a/mozilla/suite/common/contentAreaContextOverlay.xul b/mozilla/suite/common/contentAreaContextOverlay.xul
index 67f9f0253ce..c7b8347e1f5 100644
--- a/mozilla/suite/common/contentAreaContextOverlay.xul
+++ b/mozilla/suite/common/contentAreaContextOverlay.xul
@@ -50,6 +50,7 @@
// Global variable that caches the default search engine info
var gDefaultEngine = null;
+
@@ -71,6 +72,14 @@
oncommand="gContextMenu.allowPopupWindows();"/>
+
+
+
+
+
+
+