Read-only editor still changeable?

As an additional curious observation/apparent inconsistency, when using GitHub - replit/codemirror-vim: Vim keybindings for CM6, only setting the state to read-only seems to do the trick.