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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user