How to divide the text into separate pages (like Google docs) in contenteditable?
问题 I have been working on the creation of a specialized text editor running in the browser. I've got a question that has put me in a stupor. How to detect and divide long text into separate pages, as is done in Google docs? I know that google docs does not work through contenteditable, but there must be some solution... Edit1: We need to consider a few scenarios: We load a document by means of json object and then rendering our pages. We are typing the text and reached the end of the page. We