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
close icon

How to pass and get data dynamically in documentEditor? And how can I add multiple dynamic documentEditor?

Hello Team
I want to documentEditor replace richtextEditor .So How can I save and get data in document Editor and Please Explain me how to add multiple dynamic documentEditor. 
Can I add Page margin 
functionality and Page Number functionality of document editor in richtexteditor if Yes so how can I?

2 Replies

DS Dhanush Sekar Syncfusion Team November 23, 2022 09:35 AM

Devanshu, we will update details shortly.

DS Dhanush Sekar Syncfusion Team November 25, 2022 09:55 AM

## How can I save and get data in document Editor 

You can save the document as an SFDT, DOCX, or TXT file using the save API.

API name


FormatType: Sfdt or Docx or Txt

Creates the document with specified file name and format type. Then, the created file is downloaded in the client browser by default.


You can configure a server-side API if you want to save files other than SFDT and DOCX.


## Please Explain me how to add multiple dynamic documentEditor. 
Create multiple ejs-documenteditor components to achieve the above requirement.


##Can I add Page margin functionality and Page Number functionality of document editor 

Yes, you can get or set the page margin functionality using sectionformat in the selection module.


To insert the page number in the current cursor position, use the insertPageNumber API in the editor module.


Live Chat Icon For mobile
Up arrow icon