update CodeMirror