Add a parent div to codemirror.

Otherwise, codemirror will give an error.