Write to the Telerik RadEditor

This file is a user-exxtension copied from the Telerik Blog site that their develoeprs used to write to the RadEditor.
An excellent example is the use of the RadEditor object’s set_html() method:

Selenium.prototype.doSetEditorHtml = function(editorId_html)   

{   

    var args = editorId_html.split(',');  

    var editorControl = this.getAjaxControl(args[0]);  

    editorControl.set_html(args[1]);  

}   

 

 
and the respective verification comes here:
 

Selenium.prototype.getEditorHtml = function(editorControlId)   

{   

    var editorControl = this.getAjaxControl(editorControlId);  

    return editorControl.get_html()  

}  

 
Here is a sample Selenium Core test operating with the RadEditor client-side object:
 

<tr>   

    <td>setEditorHtml</td> 

    <td>NotesEditor,Just some text</td> 

    <td></td>  

</tr>   

<tr>   

    <td>assertEditorHtml</td> 

    <td>NotesEditor</td> 

    <td>Just some text</td> 

</tr>   

 

 

File: 

AttachmentSize
Package icon Telerik RadEditor user-extension527 bytes

Type: 

User-Extension