Added support for CodeMirror 4 (and possibly multiple cursors)