RadEditor Not Focusing in ContentArea

5 posts, 1 answers
  1. saad
    saad avatar
    19 posts
    Member since:
    Nov 2010

    Posted 20 Jun 2011 Link to this post

    Telerik Team

    i have 2 text boxes and one rad-editor on a page
    when i tab in rad-Editor it didn't focus on content area
    it focus on its other control like (image manager, alignment etc)



    I need to fix this issue as soon as possible
    your early response will be appreciated
    Regards
  2. Answer
    Rumen
    Admin
    Rumen avatar
    12848 posts

    Posted 20 Jun 2011 Link to this post

    Hello Saad,

    Try the following code:

    <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">
    </telerik:radeditor>


    Regards,
    Rumen
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chuck
    Chuck avatar
    2 posts
    Member since:
    Mar 2011

    Posted 01 Aug 2011 Link to this post

    I tried this solution.  It works very well by disabling the toolbar items (tabstop = false for all of them).  But it doesn't add focus on the editable area - looks like it is just focusing the entire control.

    In short, my users can't tab and type.  They have to tab to the control, then click it, then begin typing.

  5. Terance Emory
    Terance Emory avatar
    33 posts
    Member since:
    Aug 2012

    Posted 02 Aug 2011 Link to this post

    I am having a similar issue, I am using server-side .focus() method in the Page PreRender event which runs, but focus does not start on the RadEditor control.
  6. Rumen
    Admin
    Rumen avatar
    12848 posts

    Posted 04 Aug 2011 Link to this post

    Hi,

    You can try the solution provided in the following forum thread: how to set focus to radEditor body on click of tab of previous control?

    Best regards,
    Rumen
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017