Skip to content

Commit

Permalink
[de] Add precheck for words in spellchecker
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillovIlya committed Aug 30, 2023
1 parent 743534d commit c637642
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions word/Editor/SpellChecker/ParagraphSpellChecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@
if ('\'' === Word.charAt(0))
Word = Word.substr(1);
}

if (!this.HaveDictionary(Lang) || !this.IsNeedCheckWord(Word))
return;

let oElement = new AscCommonWord.CParagraphSpellCheckerElement(startRun, startInRunPos, endRun, endInRunPos, Word, Lang, Prefix, Ending);
startRun.AddSpellCheckerElement(new AscWord.SpellMarkStart(oElement));
Expand Down

0 comments on commit c637642

Please sign in to comment.