Codemirror replacement of textarea, part 2