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

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.
Live Chat Icon For mobile
Up arrow icon