Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Accessing the text content of webhtmleditor in jQuery
posted

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!

Parents
No Data
Reply
  • 435
    posted

    Hello Rajesh,

    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.

    Regards,

    Aneta Gicheva,

    Infragistics

    WebHtmlEditor.zip
Children