documentEditor useRef hook problem

Hello,

DocumentEditorComponent with React Hooks stops working after version 19.2.56 (last working version).

Best Regards

import React, { useRef } from 'react';

import { DocumentEditorComponentPrintSfdtExportWordExportTextExportSelectionSearchEditorImageResizerEditorHistoryContextMenuOptionsPaneHyperlinkDialogTableDialogBookmarkDialogTableOfContentsDialogPageSetupDialogStyleDialogListDialogParagraphDialogBulletsAndNumberingDialogFontDialogTablePropertiesDialogBordersAndShadingDialogTableOptionsDialogCellOptionsDialogStylesDialog } from '@syncfusion/ej2-react-documenteditor';

DocumentEditorComponent.Inject(PrintSfdtExportWordExportTextExportSelectionSearchEditorImageResizerEditorHistoryContextMenuOptionsPaneHyperlinkDialogTableDialogBookmarkDialogTableOfContentsDialogPageSetupDialogStyleDialogListDialogParagraphDialogBulletsAndNumberingDialogFontDialogTablePropertiesDialogBordersAndShadingDialogTableOptionsDialogCellOptionsDialogStylesDialog);

function App() {

  const documentEditor = useRef();

  return (
    <div>
      <header>
        <DocumentEditorComponent serviceUrl='https://ej2services.syncfusion.com/production/web-services/api/documenteditor/' pageOutline='#E0E0E0' layoutType='Pages' width='100%' height='100%' id="container" ref={documentEditor} isReadOnly={false} enableSelection={true} enableEditor={true} enableEditorHistory={true} enableContextMenu={true} acceptTab={true} enablePageSetupDialog={true} enablePrint={true} enableSfdtExport={true} enableImageResizer={false} enableFontDialog={false} enableParagraphDialog={false} enableTableDialog={true} enableTableOptionsDialog={true} enableTablePropertiesDialog={false} enableStylesDialog={true} enableStyleDialog={true} enableListDialog={true} enableBordersAndShadingDialog={true} enableSearch={true} />
      </header>
    </div>
  );
}

export default App;

8 Replies

SM Suriya Murugan Syncfusion Team September 17, 2021 08:13 AM UTC

Hi Adalet, 

Syncfusion Greetings! 

To check more about reported case, Can you please share the screenshot of the issue which you were facing in console? That will be helpful for us to proceed further and provide you solution at earliest. 

Regards, 
Suriya M. 



AB AB September 17, 2021 08:37 AM UTC

Hello,

This is the error;


Best regards




SM Suriya Murugan Syncfusion Team September 20, 2021 04:09 AM UTC

Hi Adalet, 

We have confirmed the reported issue as bug and logged the defect report. We will fix this issue and include in our 2021 volume 3 release which scheduled on end of September 2021. 

You can track the status of bug through below feedback link: 


In meantime, please use the below custom package with fix: 

Steps to use custom package:  

1.      Extract the custom package provided in the above link.   
2.      Copy the items inside the folder.   
3.      Then go to the sample location in this navigate to the folder node_modules\@syncfusion. You can see the ej2-documenteditor folder.   
4.      Then paste it inside the ej2-documenteditor folder.   

Note: Dont give npm install or npm update after replaced custom package , it will refresh the whole package.  


Regards, 
Suriya M. 



AB AB September 20, 2021 06:27 AM UTC

Thank you,


Regards



SM Suriya Murugan Syncfusion Team September 20, 2021 10:07 AM UTC

Hi Adalet,  

Thanks for your update. 

As we mentioned earlier, We will fix this issue and include in our 2021 volume 3 release which scheduled on end of September 2021.  

You can track the status of bug through below feedback link:  


Regards, 
Suriya M. 



SM Suriya Murugan Syncfusion Team October 1, 2021 07:18 AM UTC

Hi Adalet,   

We are glad to announce that our Essential Studio 2021 Volume 3 release v19.3.0.43 is rolled out and is available for download under the following link and in that release, we have added the fix for reported issues.           

        
Please upgrade the package to latest version to resolve this issue.           

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 



Regards, 
Suriya M. 




AB AB October 6, 2021 01:16 PM UTC

Thank you. It is working now.

Best regards



SM Suriya Murugan Syncfusion Team October 7, 2021 04:31 AM UTC

Hi Adalet,  

Thanks for your update. 

Regards, 
Suriya M. 


Loader.
Up arrow icon