Closed bunyevacz closed 5 years ago
How can I paste a string into codemirror's text at cursor location?
Seems like the props.cursor variable is for initiale cursor position, ie. when the Codemirror gets mounted into the DOM structure. I first thought to hook a function to it...
props.cursor
@bunyevacz can you please share what you've tried so far? You should be able to do this via the props you've mentioned
@bunyevacz closing due to inactivity
How can I paste a string into codemirror's text at cursor location?
Seems like the
props.cursor
variable is for initiale cursor position, ie. when the Codemirror gets mounted into the DOM structure. I first thought to hook a function to it...