Add codemirror for inline editing