CodeMirror wrapper modified to support automatic resizing.