mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +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
|
* @param changeObject codeMirror changeObject
|
||||||
*/
|
*/
|
||||||
function handleChange (editor, changeObject) {
|
function handleChange (editor, changeObject) {
|
||||||
|
if (dictionary === null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
debouncedSpellCheckLeading(changeObject)
|
debouncedSpellCheckLeading(changeObject)
|
||||||
debouncedSpellCheck(editor, liveSpellCheckFrom, changeObject)
|
debouncedSpellCheck(editor, liveSpellCheckFrom, changeObject)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user