I want to access the content of the webhtmleditor in jQuery. I have tried
var text = $('#iframe').contents.find('#WebHtmlEditor').val();
This doesn't work. Please help!
Hello Rajesh,
I suggest you want to make a reference to javascript file in your ASP.NET project. I modified the code sample in order to do that. Let me know if I may be of further assistance.
Regards,
Aneta Gicheva,
Infragistics
Thank you Anetha!
But i want to access the content in a seperate jQuery file. Because i'm calling the web methods from the jQuery file to perform save operations. The method you have mentioned is not working for me.
Thank you for contacting Infragistics!
I have implemented a code sample for you, where I use function iged_getById. You could read more about it on our website.
http://help.infragistics.com/doc/ASPNET/2016.1/CLR4.0/
After getting the reference of the WebHtmlEditor I am using the getText function. It returns the text of the WebHtmlEditor in HTML format.
I am attaching the sample. You can test it on your side and see how it works. Let me know if I may be of further assistance.