Skip to content

Commit 9f97984

Browse files
authored
Merge pull request #114 from det101/master
fix editor version bug
2 parents 862bf0e + 9af3c9a commit 9f97984

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"md5": "^2.2.1",
3636
"mitt": "^1.1.3",
3737
"moment": "^2.22.2",
38-
"monaco-editor": "^0.15.1",
38+
"monaco-editor": "^0.20.0",
3939
"pinyin": "^2.9.0",
4040
"qs": "^6.9.1",
4141
"reconnecting-websocket": "^4.1.10",

web/src/js/component/editor/editor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default {
9191
if (newValue == this.getValue()) {
9292
return;
9393
}
94-
let readOnly = this.editor.getConfiguration().readOnly;
94+
let readOnly = this.editor.getRawOptions().readOnly;
9595
if (readOnly) {
9696
// editor.setValue 和 model.setValue 都会丢失撤销栈
9797
this.editor.setValue(newValue);

0 commit comments

Comments
 (0)