I would like a simple read-only editor. It knows it’s read-only from the get-go. In many places, I saw a recommendation to include EditorState.readOnly.of(true) in the list of extensions. But when I do that, at least the view remains editable, which I find thoroughly weird. This “try” snippet demonstrates the issue:
Only once I also add EditorView.editable.of(false) as well do I get the desired effect, which makes me think that there’s something I’m not understanding correctly. Any clarification would be much appreciated.