We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 862bf0e + 9af3c9a commit 9f97984Copy full SHA for 9f97984
web/package.json
@@ -35,7 +35,7 @@
35
"md5": "^2.2.1",
36
"mitt": "^1.1.3",
37
"moment": "^2.22.2",
38
- "monaco-editor": "^0.15.1",
+ "monaco-editor": "^0.20.0",
39
"pinyin": "^2.9.0",
40
"qs": "^6.9.1",
41
"reconnecting-websocket": "^4.1.10",
web/src/js/component/editor/editor.vue
@@ -91,7 +91,7 @@ export default {
91
if (newValue == this.getValue()) {
92
return;
93
}
94
- let readOnly = this.editor.getConfiguration().readOnly;
+ let readOnly = this.editor.getRawOptions().readOnly;
95
if (readOnly) {
96
// editor.setValue 和 model.setValue 都会丢失撤销栈
97
this.editor.setValue(newValue);
0 commit comments