Export DocumentEditor as JSON

Hi,
I am using reactJS DocumentEditor.

Is there any option to export Data as JSON?

3 Replies 1 reply marked as answer

HC Harini Chellappa Syncfusion Team August 31, 2020 11:21 AM UTC

Hi Arul, 

Yes, document editor provides option to return the SFDT JSON string. 


Sample code snippet 

containerInstance.documentEditor.serialize(); 

Regards, 

Harini C 


Marked as answer

AR Aldo Ryanda replied to Harini Chellappa September 8, 2022 02:16 PM UTC

is there any option API to convert docx or blob to sfdt json using syncfusion react api or js and , isn't possible to use axios or fetch for request instead XMLHttpRequest ? , 



SM Suriya Murugan Syncfusion Team September 12, 2022 03:50 AM UTC

Hi Aldo,


Without server side interaction, it is not possible to convert Docx to SFDT.

https://ej2.syncfusion.com/react/documentation/document-editor/web-services/

Yes, you can use axios or fetch for network request instead using XMLHTTPREQUEST. We need to send client side data to server and get back to client this is the purpose for XMLHTTPREQUEST.


Please let us know if you need any further assistance.


Regards,

Suriya M.


Loader.
Up arrow icon