We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Determine a page in document editor is new

Hi team!

I am using Document Editor in a reactjs application.

How to i known a inserted page is new or not.

At first, i have one page in editor. After i save, current the first page is not new, then i insert a new page by break page action, i have a new page. I want to detect the first page is not new, and the second page is new, how to?

I have attached a property isOriginal in page object to detect new page, but this property is losing when i copy and paste a text to a page

_.forEach(this.container.documentEditor.documentHelper.pages, (page) => page.isOriginal = true)

3 Replies

KM Kavitha Muralitharan Syncfusion Team March 22, 2023 12:06 PM UTC

Hi Kha Chan,

For your understanding about the Word document structure and the workflow of Word viewer/editor components,

The Word document is a flow document in which content will not be preserved page by page; instead, the content will be preserved sequentially like a HTML file. Only the Word viewer/editor paginates the content of the Word document page by page dynamically, when opened for viewing or editing and this page wise position information will not be preserved in the document level (it is Word file format specification standard). Syncfusion Document editor component also does the same.

So, it is impossible to detect the inserted new page.

Could you share your exact requirement? So, that we can suggest you the best approach to meet your requirements.


Kavitha M

KC Kha Chan Thanh replied to Kavitha Muralitharan March 23, 2023 03:21 AM UTC

Thanks you,  Kavitha Muralitharan

KM Kavitha Muralitharan Syncfusion Team March 23, 2023 06:19 AM UTC

You're welcome, Kha Chan.

Please let us know if you need any further assistance.

Live Chat Icon For mobile
Up arrow icon