diff --git a/services/web/public/src/ide/editor/directives/aceEditor.js b/services/web/public/src/ide/editor/directives/aceEditor.js index ded1dd03c0..99f30ae5ff 100644 --- a/services/web/public/src/ide/editor/directives/aceEditor.js +++ b/services/web/public/src/ide/editor/directives/aceEditor.js @@ -594,6 +594,7 @@ define([ } const initSpellCheck = function() { + if (!spellCheckManager) return spellCheckManager.init() editor.on('changeSession', onSessionChangeForSpellCheck) onSessionChangeForSpellCheck({ session: editor.getSession() }) // Force initial setup @@ -601,6 +602,7 @@ define([ } const tearDownSpellCheck = function() { + if (!spellCheckManager) return editor.off('changeSession', onSessionChangeForSpellCheck) return editor.off( 'nativecontextmenu',