Wysiwyg-editor: documentReady does not add page breaks for long content

Created on 24 Aug 2019  路  4Comments  路  Source: froala/wysiwyg-editor

_If you have a feature suggestion, please add it on the Feature List instead._

Expected behavior.

When adding lots of content to a page in documentReady mode it should automatically insert page breaks and wrap to new pages when going beyond the initial height of the document.

Actual behavior.

documentReady mode does not create a new page when contents expands beyond height of document. Instead it creates one super long document that does not match the page breaks inserted when exporting to PDF.

Steps to reproduce the problem.

This issue is present when using fullscreen on the Froala official JSFiddle: https://jsfiddle.net/froala/yroq46pe/. Just add some content.

Editor version.

v3

Browser.

Chrome, FireFox

waiting-details

Most helpful comment

Hi,

We have the same problem. When editing document we do not know the end of page.
Is it possible to add some sort visual identifier?
It would be even cooler if we get to choose what page size it should be (eg: A4, A5, custom size)

Document Ready

All 4 comments

Hello,

We have tried to reproduce this issue with both Chrome and Firefox but all the time resulting PDF file was split into separate pages.
Can you please share a sample of content, resulting pdf and also screen record of the issue.

I believe what the issue Rob101 is talking about is that in the Forala editor you cannot tell where a page break is going to appear when the document is printed out as a pdf.

If you edit a document in MS Word, or google docs each page is clearly defined. where as in the editor it is one single scrolling page so when you download it as a pd you can get text or images that are cut in the middle of two pages. This is something my company has been struggling with for a while it would be fantastic if Forala would be the solution to this.

What I have just tried is downloading this word doc template and pasting it into the Jsfiddle Rob101 provided and then pressing the download pdf button, it results in some cut off text and images since you do not know where the page breaks will appear

Hi,

We have the same problem. When editing document we do not know the end of page.
Is it possible to add some sort visual identifier?
It would be even cooler if we get to choose what page size it should be (eg: A4, A5, custom size)

Document Ready

as stated on the Froala website:

Try it yourself:
By enablind the document mode, the Froala WYSIWYG HTML Editor sets by default the best options for creating online documents. After editing the content, the print and export as PDF buttons are perfect so you to take the content and use it further just as you'd do with any Word processor such as Microsoft Word or Google Docs.

Though in Microsoft Word and/or Google Docs it clearly indicates when a page ends. So a WYSIWYG editor user can consider the breaks in the document.

I agree with @sjeevara to add a visual identifier of when a page ends and indeed would be nice to be able to set the size of the page (A4 etc.)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

george-norris-salesforce picture george-norris-salesforce  路  4Comments

Nucs picture Nucs  路  4Comments

horatiua picture horatiua  路  4Comments

bbugh picture bbugh  路  3Comments

bnjmnfnk picture bnjmnfnk  路  4Comments