Skip to content

Commit

Permalink
Bug 1402822 - Support multiple dictionaries in EditorSpellCheck; r=smaug
Browse files Browse the repository at this point in the history
  • Loading branch information
dminor committed Mar 23, 2022
1 parent ec76867 commit 0f00bde
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 124 deletions.
9 changes: 5 additions & 4 deletions editor/nsIEditorSpellCheck.idl
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,15 @@ interface nsIEditorSpellCheck : nsISupports
Array<ACString> GetDictionaryList();

/**
* @see mozSpellChecker::GetCurrentDictionary
* @see mozSpellChecker::GetCurrentDictionaries
*/
ACString GetCurrentDictionary();
Array<ACString> getCurrentDictionaries();

/**
* @see mozSpellChecker::SetCurrentDictionary
* @see mozSpellChecker::SetCurrentDictionaries
*/
void SetCurrentDictionary(in ACString dictionary);
[implicit_jscontext]
Promise setCurrentDictionaries(in Array<ACString> dictionaries);

/**
* Call this to free up the spell checking object. It will also save the
Expand Down
Loading

0 comments on commit 0f00bde

Please sign in to comment.