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
135
Get Javascript (Clinet Side) reference to WebHtmlEditor
posted

I am trying to set some text to

document.form1.WebHtmlEditor1.text = 'sometext'

 

using javascript, but I can't get reference to

document.form1.WebHtmlEditor. How can you set text value using Javascript?

  • 995
    posted

    I was just following up on this issue. Did the information above help you?


    Sincerely,
    Batnasan
    Developer Support Engineer, MCAD
    Infragistics

  • 995
    posted
    You can reference the WebHtmlEditor using one of followings:

    -          use the utility function function iged_getById(id)

    -          use  document.getElementById(id);

    Once you get the control you can set text using the functions setText() or insertAtCaret();

    --------------------------------------------------------------------------------

    Sincerely,
    Batnasan
    Developer Support Engineer, MCAD
    Infragistics