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

[Solved] Editor Focus Issue

1 Answer 68 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Hal
Top achievements
Rank 1
Hal asked on 05 Oct 2009, 05:41 PM
When tabbing into the editor, the focus is being set to the Font field in the toolbar instead of the body of the editor...
How can I fix this?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Oct 2009, 10:16 AM
Hi Hal,

Please, try the following code solution:
<script type="text/javascript">
function OnClientLoad(editor, args)
{
   var buttonsHolder = $get(editor.get_id() + "Top");  //get a reference to the top toolbar zone of the editor
   var buttons = buttonsHolder.getElementsByTagName("A");  //get a reference to all A elements on the toolbar and disable the tabbing trough them
   for (var i=0; i< buttons.length; i++)
   {
      var a = buttons[i];
      a.tabIndex = -1;
      a.tabStop = false;
   }
}
</script>
<telerik:radeditor OnClientLoad="OnClientLoad" runat="server" ID="RadEditor1" Language="sv-SE">
    <ImageManager ViewPaths="~/Images" UploadPaths="~/Images" />
</telerik:radeditor>

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Hal
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or