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
550
How do I get and set the Value of the HTML
posted

I am using classic ASP because this is an older application.  I can get the control to render just fine but I can not set the value of the text area.  Also, I need to retrieve it the value of the html so I can store it.

 

Any ideas?

Parents
  • 105
    Verified Answer
    posted

    Hi ericlarson,

    Such functionality will be added for the next volume release due to the fact that current volume release had the html editor as a CTP, but until then I can suggest you the following workaround.

    //editorId is the id of the element the html editor was initialized.

    var editorWorkspaceId = "#" + editorId + "_editor"

    $(editorWorkspaceId).contents().find("body").html(); // Get the html from the editor
    $(editorWorkspaceId).contents().find("body").html("Some HTML"); // Set the html for the editor

    Best Regards,
    Bozhidar Cherkezov

Reply Children
No Data