Blank screen when switching to another iframe

CodeMirror needs to know its layout (which isn’t possible when it is hidden) to draw itself. You can call the refresh method after showing the editor to force a redraw.