We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Document Editor not working

I am using DocumentEditor for editing my word document. I am getting js error in the line "documenteditor = documenteditorElement.ej2_instances[0];", 
ej2_instances is not defined.  While checking online demo, following js script is added in the example.

<script>var DocumentEditorContainerjcaj0ex0aoq=new ejs.documenteditor.DocumentEditorContainer({
  "enableLocalPaste": false,
  "enableToolbar": true,
  "restrictEditing": false,
  "showPropertiesPane": false
});
DocumentEditorContainerjcaj0ex0aoq.appendTo("#container"); 
</script>

But while checking example code, I could not find the script. Can anyone help me to sort out this issue? 
    

1 Reply

RT Ramya Thirugnanam Syncfusion Team December 26, 2018 12:12 PM UTC

Hi Narayan, 
 
Thanks for contacting Syncfusion support. 
 
It seems that Essential JavaScript 2 Script manager is not configured in sample side. So, please add the script manager as given in the Step 5 of Configure Essential JS 2 in the application section from the below link. 
 
 
Regards, 
Ramya T 


Loader.
Live Chat Icon For mobile
Up arrow icon