Move codemirror inside texteditor