The cursor is not active after replaceSelection. Im looking for a way set cursor position at the end of the replaced text, ready to type again.
This would be interesting for the built-in templating plugin. I would love to be able to define a place in a template where the cursor would be moved after being inserted.
If I’m understanding what you’re asking correctly, this can be done with a combination of setCursor and focus on the code mirror document.
I’ll look there later today and keep you informed.
exactly what I was looking for.