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. 
And
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 02:35 PM UTC

Devanshu, we will update details shortly.



DS Dhanush Sekar Syncfusion Team November 25, 2022 02:55 PM UTC

## 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

Purpose

save(filename,FormatType):void
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.

https://ej2.syncfusion.com/angular/documentation/document-editor/export/#export


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

https://ej2.syncfusion.com/angular/documentation/document-editor/web-services/core/#save-as-other-file-formats-by-passing-sfdt-string


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

https://ej2.syncfusion.com/angular/documentation/document-editor/getting-started/#adding-documenteditor-component


##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.

https://ej2.syncfusion.com/angular/documentation/document-editor/section-format/#page-margins


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

https://ej2.syncfusion.com/angular/documentation/document-editor/how-to/insert-page-number-and-navigate-to-page/#insert-page-number


Loader.
Up arrow icon