mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
a3bcc71df9
commit
56839ae6fb
1 changed files with 5 additions and 1 deletions
|
@ -756,7 +756,11 @@ define([
|
|||
// respect the readOnly setting, normally false
|
||||
editor.setReadOnly(scope.readOnly)
|
||||
triggerEditorInitEvent()
|
||||
initSpellCheck()
|
||||
|
||||
if (!scope.readOnly) {
|
||||
initSpellCheck()
|
||||
}
|
||||
|
||||
initTrackChanges()
|
||||
initUndo()
|
||||
|
||||
|
|
Loading…
Reference in a new issue