How Can I use Document Editor control with Angular 6 version?

Hi Team,

I have a requirement to view different types of files. I need to use Document Editor but I am unable to use it by steps given as follows:
The Configuring system JS part listed here is not clear, without which, the build fails!
Also I got this document: https://www.syncfusion.com/kb/10628/how-to-get-started-with-syncfusion-angular-7-wordprocessor-component that says min Angular version required is 7.

Can I get a working demo of Document editor for angular 6 app with steps to get started?

Thanks
Tuariq



3 Replies 1 reply marked as answer

SM Suriya Murugan Syncfusion Team June 11, 2020 10:39 AM UTC

Hi Tuariq, 
 
Syncfusion Greetings! 
 
To install and run the application in Angular 6, Angular 5, or Angular 4, you should replace the CLI command version number with corresponding Angular version number. 
  
npm install -g @angular/cli@<CLI VERSION> 
 
Please check the already share kb link for further reference. 
 

Note:  To get started with Syncfusion Angular DocumentEditor components it supported version from Angular 4+. 
 
Regards, 
 
Suriya M. 



SH shrutidevurkar February 26, 2021 11:18 AM UTC

I am getting this error despite following the steps:


'ejs-documenteditor' is not a known element:
1. If 'ejs-documenteditor' is an Angular component, then verify that it is part of this module.
2. If 'ejs-documenteditor' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

and in component.ts file on adding this line
  providers: [
     SelectionService,
      EditorService,
       SearchService,
        OptionsPaneService,
        ]
Error during template compile of 'ExplorerdescComponent'
  Could not resolve @syncfusion/ej2-angular-documenteditor relative to [object Object].




SM Suriya Murugan Syncfusion Team March 1, 2021 07:53 AM UTC

Hi Shruthi, 

Syncfusion Greetings! 

You have used DocumentEditor in our sample. To resolve the reported issue, use DocumentEditorAllModule in app.module.ts file. 

 


Please check below sample for reference. 

Steps to run:  
1.      npm install 
2.      ng serve 

Please let us know if you have any questions. 

Regards, 
Suriya M. 


Marked as answer
Loader.
Up arrow icon