Update codemirror, fix mode bug.