codemirror as editor