How to enable the full-screen function in codemirror6?

https://codemirror.net/demo/fullscreen.html

In codemirror5, we can turn on and off full screen with F11/ESC, so how do we turn on full screen in 6.x?

There is no such function – wrap the editor in some other element, and resize that to become full screen.

Ok, thanks