Update to support CodeMirror v3.01 and later