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?
POPrince Oliver Syncfusion Team December 6, 2018 06:06 AM
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.
// ‘new comment’ is the ID attribute, you need to append ‘-value’ at the end.
var rteObj = document.getElementById('newComment' + '-value').ej2_instances;
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.
CSCharles SoutheyDecember 6, 2018 09:05 AM
Do you have a release date for the 2018 Volume 4 release?
POPrince Oliver Syncfusion Team December 7, 2018 12:31 AM
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.