mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
don't do spellcheck if disabled...
This commit is contained in:
@@ -188,6 +188,9 @@ const debouncedSpellCheck = _.debounce(checkChangeRange, MILLISECONDS_TILL_LIVEC
|
||||
* @param changeObject codeMirror changeObject
|
||||
*/
|
||||
function handleChange (editor, changeObject) {
|
||||
if (dictionary === null) {
|
||||
return
|
||||
}
|
||||
debouncedSpellCheckLeading(changeObject)
|
||||
debouncedSpellCheck(editor, liveSpellCheckFrom, changeObject)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user