This is a migrated thread and some comments may be shown as answers.

Hoe can i get RadEditor Content

1 Answer 90 Views
Editor
This is a migrated thread and some comments may be shown as answers.
rizk
Top achievements
Rank 1
rizk asked on 17 Apr 2008, 12:09 PM
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

1 Answer, 1 is accepted

Sort by
0
Shaun Peet
Top achievements
Rank 2
answered on 17 Apr 2008, 12:36 PM
Hello,

Please check the online documentation, available here:

http://www.telerik.com/help/radcontrols/prometheus/editor_get_html.html

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    
 
Tags
Editor
Asked by
rizk
Top achievements
Rank 1
Answers by
Shaun Peet
Top achievements
Rank 2
Share this question
or