RadEditor for ASP.NET

SetFocus Send comments on this topic.
Client-side API Reference > Methods > SetFocus

Glossary Item Box

Sets the focus on RadEditor.

function SetFocus ()

Here is an example:

ASPX/ASCX Copy Code
<rad:RadEditor id="RadEditor1" Runat="server"></rad:RadEditor>

<
script type="text/javascript">
  
var editor = GetRadEditor ("<%=RadEditor1.ClientID%>"); //get a reference to the editor
  
editor.SetFocus(); //set the focus on the the editor
</script>