using a config object from view to init CodeMirror