Closed stoplion closed 4 years ago
@stoplion I am a lot shorter on time these days as when I started this project. Codemirror & React APIs are moving to quickly for me to keep atop of for the day-to-day. I am looking for a co-maintainer of this project. Please contact me directly if you are interested. Thank you for understanding.
I will have a look at this.
@stoplion you can pass key to CodeMirror like this
<CodeMirror key={activeLine} value={
one
two
three
four
} options={{ lineNumbers: true, styleActiveLine: true }} cursor={{ line: parseInt(activeLine,10), ch: 1 }} />
looks like a workaround
https://codesandbox.io/s/heuristic-neumann-kvkjn
Is this intended? Once the component mounts, the line property seems like it can't be changed.