Hoe can i get RadEditor Content

2 posts, 0 answers
  1. rizk
    rizk avatar
    8 posts
    Member since:
    Aug 2007

    Posted 17 Apr 2008 Link to this post

    i want to get the HTML content of  rad editor using  javascript 
    i want javascript code to run at IE and Firefox

    here is my code

    var ctrl=document.getElementById(RadEditorId);
    var content  ;
         if(ctrl !=null)
            if (ctrl.control.isIE)
              content  =   ctrl.innerHTML ;
           else if (ctrl.control.isFirefox)
             content   =  ctrl.control._contentArea.innerHTML

    can anyone plz help me

  2. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 17 Apr 2008 Link to this post


    Please check the online documentation, available here:


    This is the general way to do it though:

    var editor = $find("<%=RadEditor1.ClientID%>"); //get a reference to RadEditor client object     
    var oValue = editor.get_html(true); //get the HTML content    
  3. DevCraft R3 2016 release webinar banner
Back to Top