DocumentEditor - Am not able to export the complete data from component

Hi,

We are using React DocumentEditor,

1. Am trying to copy-paste a document file data into the component and modified a few data's then tried to export the data as JSON by using 

Export code: 
var id = 'document-' + this.props.id
var documentEditor = document.getElementById(id).ej2_instances[0].documentEditor.serialize()

after export, We are saving that JSON in S3

2. Now Am trying to import the same JSON file into component

Import code: 
var url = 'json file url' fetch(url)
      .then(res => res.json())
      .then((result=> {
        if (result) {
          var id = 'document-' + this.props.id
          if (document.getElementById(id).ej2_instances && document.getElementById(id).ej2_instances[0]) {
            document.getElementById(id).ej2_instances[0].documentEditor.open(result)
          }
        }
      },
      (error=> { console.log('error'error) })

We are not able to see the complete data. Some data got missed




1 Reply

SM Suriya Murugan Syncfusion Team June 14, 2021 05:22 AM UTC

Hi Arul, 

Syncfusion Greetings! 

We suspect that the reported problems are might be due to the contents in the input word document which you tried to copy and paste to Documenteditor. So, could you please provide us the input Word document which used at your end. Thereby, we will analyze further and provide you the appropriate solution at the earliest. 
  
Note: If you have any confidential data in your Word document, please replace with some dummy data and provide us the same. We just need your document to recreate the problem you face. 


Regards, 
Suriya M. 


Loader.
Up arrow icon