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 e3d030e + 38fa966 commit 9e877eaCopy full SHA for 9e877ea
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