Fix cursor in nested editor

This is for #6755. A new `CodeMirror-cursors` class was added.

cc @njx