Tabbing between fields

2 posts, 0 answers
  1. Wiktoria
    Wiktoria avatar
    1 posts
    Member since:
    Apr 2009

    Posted 22 Jun 2009 Link to this post

    In the classic RadEditor you could use the EnableTab property to set how the tab key would work inside the Editor but it seems to be missing in the Ajax version. Is there another way to get the tab key to set focus to the next field instead of adding whitespace?
  2. Stanimir
    Stanimir avatar
    1654 posts

    Posted 24 Jun 2009 Link to this post

    Hello Wiktoria,

    For the time being we do not plan to implement the EnableTab property in RadEditor for ASP.NET AJAX.
    How ever I will provide you with instructions of how to achieve the desired functionality.
    1. Add the following code to the respective ConfigFile.xml or ListConfigFile.xml, which are located in the Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\\Resources folder.
    <property name="OnClientLoad">OnClientLoad</property> 

    2. Add the following javascript code the the MOSSEditorTools.js, which is located in the mentioned above folder.
    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
    Telerik.Web.UI.Editor.CommandList.InsertTab = function(commandName, editor, oTool) 
            $get(editor.get_id() + "_ModesWrapper").focus(); //here you can set the focus to other document 
        }, 0);   

    I hope this helps.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top