Maintaining selection

You could change your approach to move (delete and re-insert) the page node boundary rather than the content – that’d make mapping do the right thing.

But in general, encoding presentation-related things in the document model isn’t the ProseMirror way, and the recommended approach would be to have the user edit a non-paginated version of the document and do the pagination in a separate step.

1 Like