replace textarea with codemirror editor (issues #30 and #31)