Use CodeMirror to edit Groovy fragment