Make the pagination in A4 format in contenteditable

as the title says, I need to put a text editor in my web page and I want that when I enter the text and I get to the end of the page, instead of the div changing size, we creates another still editable div and so. thanks for your understanding !