Update codemirror & fix issues