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.
1 parent 68db94c commit 38fa966Copy full SHA for 38fa966
codemirror.vue
@@ -88,15 +88,19 @@
88
'code': function(newVal, oldVal) {
89
const editor_value = this.editor.getValue()
90
if (newVal !== editor_value) {
91
+ let scrollInfo = this.editor.getScrollInfo()
92
this.editor.setValue(newVal)
93
this.content = newVal
94
+ this.editor.scrollTo(scrollInfo.left, scrollInfo.top)
95
}
96
},
97
'value': function(newVal, oldVal) {
98
99
100
101
102
103
104
105
106
0 commit comments