codex-team / codex-team/editor.js

Splitting content into seperate pages

Open
#2,097 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

I was wondering if editor.js supported breaking content into pages, from my findings it looks like it doesn't and there doesn't seem to be any plugins for it.

I'm also wondering if it is possible as I'm willing to put in the work myself, I'm just slightly lost in the codebase. My rudimentary idea right now is editing the `insertToDOM` method or `push` and doing a calculation to see if the size of all blocks on the document exceeds a certain height and inserting a uneditable block inbetween the two where the page break should be. Or would it be easier to have seperate editors and just copy data between when it gets too long?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.