I have some styles that change, and the cursor thus ends up a bit misplaced, is there any way to trigger a re-calculuation in CodeMirror?
I have some styles that change, and the cursor thus ends up a bit misplaced, is there any way to trigger a re-calculuation in CodeMirror?
Yes, call its refresh
method.