Update SpellCheck.plugin.js

This commit is contained in:
Mirco Wittrien 2020-03-27 18:18:15 +01:00
parent a7d506fbb7
commit 504a7c3efe
1 changed files with 2 additions and 6 deletions

View File

@ -6,17 +6,13 @@ var SpellCheck = (_ => {
return class SpellCheck { return class SpellCheck {
getName () {return "SpellCheck";} getName () {return "SpellCheck";}
getVersion () {return "1.4.0";} getVersion () {return "1.4.1";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
getDescription () {return "Adds a spellcheck to all textareas. Select a word and rightclick it to add it to your dictionary.";} getDescription () {return "Adds a spellcheck to all textareas. Select a word and rightclick it to add it to your dictionary.";}
constructor () { constructor () {
this.changelog = {
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
};
this.patchedModules = { this.patchedModules = {
after: { after: {
SlateChannelTextArea: ["componentDidMount", "componentDidUpdate"] SlateChannelTextArea: ["componentDidMount", "componentDidUpdate"]
@ -135,7 +131,7 @@ var SpellCheck = (_ => {
languages = BDFDB.ObjectUtils.filter(BDFDB.LanguageUtils.languages, lang => {return lang.dic == true ? lang : null}); languages = BDFDB.ObjectUtils.filter(BDFDB.LanguageUtils.languages, lang => {return lang.dic == true ? lang : null});
this.setDictionary(BDFDB.DataUtils.get(this, "choices", "dictionaryLanguage")); this.setDictionary(BDFDB.DataUtils.get(this, "choices", "dictionaryLanguage"));
if ((BDFDB.LibraryModules.StoreUtils.get("SpellcheckStore") || {}).enabled) BDFDB.LibraryModules.SpellCheckUtils.toggleSpellcheck(); if ((BDFDB.LibraryModules.StoreChangeUtils && BDFDB.LibraryModules.StoreChangeUtils.get("SpellcheckStore") || {}).enabled) BDFDB.LibraryModules.SpellCheckUtils.toggleSpellcheck();
BDFDB.ModuleUtils.forceAllUpdates(this); BDFDB.ModuleUtils.forceAllUpdates(this);
} }