There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-f28dbb4c-9d05-4b20-a1ba-8cd949b3e222 XWIKI-23726 Open

Upgrade pagedjs to 0.5.0

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-bc22e906-13c6-4b44-84d4-59b8c769fa89 Marius Dumitru Florea on 18/Nov/25 10:23
 
I tried the beta version, but it doesn't work out of the box. Some new code is conflicting with Prototype.js because Prototype.js is overwriting standard JavaScript types, such as Array. I managed to fix this and run our automated tests. I got some failures, most of which needed only test code updates, but some were real problems. Precisely, the {{floatingImage}} test is concerning because images at the end of a print page are cut, and the surrounding text is partially lost. This seems to match:

* https://github.com/pagedjs/pagedjs/issues/274
* https://github.com/pagedjs/pagedjs/issues/271

While reading the comments I noticed someone mentioning a new library, similar to paged.js, namely https://github.com/neocode-it/paginatejs , see also https://paginatejs.gitbook.io/docs
/about-paginate.js , that we may want to look at, as a replacement for paged.js, in case development for paged.js stalls.