add a codemirror field.