codemirror on fullscreen rewritten from example