Load Paged.js as a model #19

Open
opened 2022-10-13 16:41:54 +02:00 by mb · 1 comment
Owner

Just learning from Julie Blanc from Paged.js that you can load Paged.js as a module, which means that you can execute code before loading Paged.js. In this way, we can get rid of the <iframe> in the PDF view.

See:

esm basically stands for "paged.js as a module"

Just learning from Julie Blanc from Paged.js that you can load Paged.js as a module, which means that you can execute code before loading Paged.js. In this way, we can get rid of the `<iframe>` in the PDF view. See: - https://pagedjs.org/posts/paged-break-the-long-overdue-update/ - https://gitlab.coko.foundation/pagedjs/starter-kits (book-spread_esm is an example where this is applied) - https://unpkg.com/browse/pagedjs@0.3.5/dist/ (the esm version of Paged.js is here) `esm` basically stands for "paged.js as a module"
mb changed title from Paged.js: load paged.js as a model to Load Paged.js as a model 2022-10-13 16:42:11 +02:00
Collaborator

we can get rid of the <iframe> in the PDF view.

🤟

> we can get rid of the `<iframe>` in the PDF view. 🤟
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: CC/octomode#19
No description provided.