Disabled spell checker on read-only GitOrigin-RevId: fff76f8fae5ea9c3035902b2abf1c7c54ad556bf
@@ -756,7 +756,11 @@ define([
// respect the readOnly setting, normally false
editor.setReadOnly(scope.readOnly)
triggerEditorInitEvent()
- initSpellCheck()
+
+ if (!scope.readOnly) {
+ initSpellCheck()
+ }
initTrackChanges()
initUndo()