Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Problems with WebHTMLEditor

Last post 07-23-2008 13:51 by [Infragistics] Rumen Stankov. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-23-2008 11:07

    • ruizma
    • Not Ranked
    • Joined on 07-23-2008
    • Points 20

    Problems with WebHTMLEditor

    Hi,

    I have a form with a WebHTMLEditor in a ASP.net application . I wish to change the content that is in this control depend of a select control, all by javascript because I don´t want reload the page.

    With javascript I change the value of the WebHTMLEditor by his property innerText and innerHTML. The problem come with the buttons bold, italic, underline..., when I change innerHTML, they dont fire, and if I want add an image then shows a error message that I dont have permissions

    How can I change the value of the WebHTMLEditor with javascript?

    thanks,
    Ruizma

     

    • Post Points: 20
  • 07-23-2008 13:51 In reply to

    Re: Problems with WebHTMLEditor

     Hello Ruizma,

    Thanks for writing and for your interest in our products. Our products employ a slightly different approach when using Javascript - we have what we call CSOM - Client Side Object Model. This way, you can get the instance of the editor and use the set/getText methods to do that.

    For example: 

    var oEditor = iged_getById(editorId);
    if (oEditor)
        oEditor.setText( cleanXhtml( oEditor.getText() ) );

    A very good forum topic, where one of our customers has managed to create a client-side javascript XHTML filter and shared his solution with us, is located here: 

    http://forums.infragistics.com/forums/p/2428/15702.aspx#15702

    More info on CSOM can be found here (our online help - the last link from the treeview on the left):

    http://help.infragistics.com/NetAdvantage/NET/2008.2/CLR2.0/ 

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems