Codemirror replacement of textarea