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

Tabbing between fields

1 Answer 55 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Wiktoria
Top achievements
Rank 1
Wiktoria asked on 22 Jun 2009, 12:19 PM
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?

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 24 Jun 2009, 07:40 AM
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\5.4.1.0__1f131a624888eeed\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) 
    setTimeout(function() 
    {     
        $get(editor.get_id() + "_ModesWrapper").focus(); //here you can set the focus to other document 
    }, 0);   

I hope this helps.

Best wishes,
Stanimir
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.
Tags
WebParts for SharePoint
Asked by
Wiktoria
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or