Bug 294251 Spell as you type: Can not add entries to personal dictionary (persdict.dat) via popup

p=me r=neil.parkwaycc.co.uk sr=bienvenu a=asa


git-svn-id: svn://10.0.0.236/trunk@173606 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bugzilla%arlen.demon.co.uk
2005-05-19 21:43:09 +00:00
parent d3ebd1725b
commit a1a2486612

View File

@@ -241,6 +241,9 @@ var gComposeRecyclingListener = {
document.getElementById("FormatToolbar").hidden = false;
}
// Stop InlineSpellChecker so personal dictionary is saved
StopInlineSpellChecker();
//Reset editor
EditorResetFontAndColorAttributes();
EditorCleanup();
@@ -1510,6 +1513,9 @@ function ComposeUnload()
{
dump("\nComposeUnload from XUL\n");
// Stop InlineSpellChecker so personal dictionary is saved
StopInlineSpellChecker();
EditorCleanup();
RemoveMessageComposeOfflineObserver();
@@ -2045,6 +2051,12 @@ function addRecipientsToIgnoreList(aAddressesToAdd)
}
}
function StopInlineSpellChecker()
{
if (InlineSpellChecker.inlineSpellChecker)
InlineSpellChecker.inlineSpellChecker.enableRealTimeSpell = false;
}
function ToggleInlineSpellChecker(target)
{
if (InlineSpellChecker.inlineSpellChecker)