Fix editor resize issue with new CodeMirror