DocumentEditor and DocumentEditorContainer Tag Helpers

How do I user the documentEditor and documentEditorContainer tag helpers together to create a document editor with tool bar and controls, instead of using just documentEditor, and having to manually create the container object in JS after the DOM is rendered?

1 Reply 1 reply marked as answer

HC Harini Chellappa Syncfusion Team July 24, 2020 05:28 PM UTC

Hi Richard, 

To create document editor component, please use the below tag in cshtml file. 
  
<ejs-documenteditorcontainer id="container"></ejs-documenteditorcontainer> 
  
For your reference, please check the below document editor container sample in ASP.NET core. 
  
  
To get the container Object in JS, please check the below code 
  
var containerObj = document.getElementById(“container”).ej2_instances[0]; 

Regards, 

Harini C 


Marked as answer
Loader.
Up arrow icon