Adding codemirror as editor.