Merge pull request #1797 from overleaf/msm-disable-spellcheck-on-readonly

Disabled spell checker on read-only

GitOrigin-RevId: fff76f8fae5ea9c3035902b2abf1c7c54ad556bf
This commit is contained in:
Alasdair Smith 2019-05-28 12:04:54 +01:00 committed by sharelatex
parent a3bcc71df9
commit 56839ae6fb

View file

@ -756,7 +756,11 @@ define([
// respect the readOnly setting, normally false
editor.setReadOnly(scope.readOnly)
triggerEditorInitEvent()
if (!scope.readOnly) {
initSpellCheck()
}
initTrackChanges()
initUndo()