Force space after mark

Is there a way in the schema or elsewhere to ensure that there will always be a space character after a mark?

I have a custom mark that is “contenteditable=false” and therefore when i click on the line after the mark the cursor does not appear there and i can type.

Is this doable and if so how :slight_smile:

You could set up an appendTransaction hook that, whenever the document is changed in a way that invalidates this constraint, it appends a transaction that adds the space.

1 Like

Hi! Did you ever resolve this? Any suggestions, as I’m dealing with the exact some issue. Stuck inside a span that I set the contenteditable to false. Thanks!