Done. A lot of the event handlers for CodeMirror weren't instance methods, see `_handleCursorActivity`, `_handleKeyEvents` and `_handleEditorChange`. To make `_getCursor` an instance method, I had to add these event handlers as methods on `Editor`.