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

ej2_instances missing from Rich Text Editor

Hi - in the latest version of the MVC Rich Text Editor the ej2_instances object appears to be missing. It was there in the previous version - but at the moment I am having to directly access the underlying DOM objects under the parent control in order to access the html value of the control like so...

        update = $('#newComment_rte-edit-view').html();

...where the id of the parent control is "newComment".

Is this an oversight or is there a new way of accessing the control's value?

3 Replies

PO Prince Oliver Syncfusion Team December 6, 2018 11:06 AM UTC

Hi Charles, 

Thank you for contacting Syncfusion support. 

We were able to replicate the reported issue in our end and we are considering this as a defect. The fix for this issue will be included in our upcoming 2018 Volume 4 release. Meanwhile, we can access the RTE’s value from the value property using the instance which can be obtained as demonstrated in the following code. 

<script type="text/javascript"> 
// ‘new comment’ is the ID attribute, you need to append ‘-value’ at the end. 
    var rteObj = document.getElementById('newComment' + '-value').ej2_instances[0]; 

Please note the above workaround solution will work only till this issue is fixed (i.e.) till 2018 volume 4 release. After the fix you can take the instance directly using the ID attribute. 


CS Charles Southey December 6, 2018 02:05 PM UTC

Do you have a release date for the 2018 Volume 4 release?

PO Prince Oliver Syncfusion Team December 7, 2018 05:31 AM UTC

Hi Charles, 

Thank you for your update. 

The 2018 Volume 4 main release expected to be available in mid of December 2018. Please let us know if you have any further queries. 


Live Chat Icon For mobile
Up arrow icon