Upgrade to CodeMirror 4.8. Please see http://codemirror.net/doc/releases.html for CodeMirror release notes.