discuss.CodeMirror
Does CodeMirror6 have the same function as TextMarker.changed
v6
superdc
May 25, 2022, 4:55pm
1
image
1200×422 75.9 KB
Because I will dynamicly insert dom into marker,I want to reset cursor position after insert,which implete as TextMarker.changed in CodeMirror5。What I should do in CodeMirror6?
marijn
May 25, 2022, 8:26pm
2
I think just calling
EditorView.requestMeasure
should be enough.