Thanks so much, Marjin, that solved the issue. I move the previous key to a new spec variable and it now works perfectly. I will post a URL link soon (when it works perfectly in all cases) so you can check out real, effective and very fast pgaination using ProseMirror, even with 100 page documents. At least for text based documents like screenplays (my use case) that has widow/orphan control, paragraph splitting based on sentences (no sentences orphaned mid sentence) aws well as splitting up dialogue when it spans two pages. I could add forced page breaks in a trivial manner as well in my editor by just inserting a new decoration, a no brainer.