use textarea to create CodeMirror and auto resize to fill the parent panel