Can I enhance codemirror (using some code or setting etc.) so that when I type $$
it adds another $$
and puts the caret in the middle? (right now it’s annoying to have to type $$$$
then two more arrow keys to put the caret where I need it)
Hi @Ittayd
have a look at the CodeMirror 6 plugin.
It supports defining custom actions when a string is detected.
You could detect the string $$
and make it automatically become $$$$
with the cursor in the middle.
Best wishes,
Simon