Fix CodeMirror support to work with latest CodeMirror.