Add CodeMirror for add/edit/delete metric on a graph