Fix work with CodeMirror 3