|
Client-side |
‘DocumentEditor’ class provides ‘serialize()’ method which returns the document as SFDT (Syncfusion Document Text). You can reopen this document anytime using ‘open(sfdt: string)’ method of DocumentEditor for further editing. |
|
Server-side |
‘DocumentEditor’ class provides ‘saveAsBlob(FormatType.Docx)’ method which returns the document as DOCX blob. You can pass this blob to server through web service API and store them in database based on your requirement. |
|
Save the document as SFDT |
saveBtnClick: function () {
let sfdt = vm.$refs.documenteditor.ej2Instances.serialize();
let fileName = vm.$refs.documenteditor.ej2Instances.documentName === '' ? 'Untitled Document' : vm.$refs.documenteditor.ej2Instances.documentName;
vm.$refs.jsonData[fileName] = JSON.parse(sfdt);
this.updateTemplateDropDown();
},
|