CodeMirror editor support added selection handling  #26