Caret visibility with drawSelection and readOnly

hi marijn!

we are using the drawSelection extension to draw the cursor and are currently looking into how we can hide the caret in read-only mode.
we expected that it’s enough to use EditorState.readOnly.of(false), but with this, the caret is still visible.
is this something that could / should be handled in the extension or do we need to add something else (override some styles or whatever) to hide the caret?

best,
peter

You could use CSS to hide the cursor. But indeed, setting the editor to be read-only (I assume you meant to pass true to the readOnly facet, not false) will not hide it.

ah, sure, should be true
ok, thx, will check with CSS.