Skip to content

Commit

Permalink
Merge pull request #114 from det101/master
Browse files Browse the repository at this point in the history
fix editor version bug
  • Loading branch information
demonray authored Jun 10, 2020
2 parents 862bf0e + 9af3c9a commit 9f97984
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"md5": "^2.2.1",
"mitt": "^1.1.3",
"moment": "^2.22.2",
"monaco-editor": "^0.15.1",
"monaco-editor": "^0.20.0",
"pinyin": "^2.9.0",
"qs": "^6.9.1",
"reconnecting-websocket": "^4.1.10",
Expand Down
2 changes: 1 addition & 1 deletion web/src/js/component/editor/editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default {
if (newValue == this.getValue()) {
return;
}
let readOnly = this.editor.getConfiguration().readOnly;
let readOnly = this.editor.getRawOptions().readOnly;
if (readOnly) {
// editor.setValue 和 model.setValue 都会丢失撤销栈
this.editor.setValue(newValue);
Expand Down

0 comments on commit 9f97984

Please sign in to comment.