editable.of(false) with CTRL+A

I’m creating an editor with EditorView.editable.of(false) but would like to retain CTRL+A to select all text. Any way to retain that keymap function?

By default, uneditable elements aren’t focusable, and thus won’t receive any direct keyboard events. You could add a EditorView.contentAttributes.of({tabindex: "0"}) extension and see if that helps.

That did it! Thanks marijn !