New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Tab Key Behavior

This help article describes the default behavior of the tab key in RadEditor and explains how to control it and obtain consistent behavior between browsers.

The Tab key behaves differently among different browsers in RadEditor (Table 1). This is so because the tabbing functionality relies on the browsers' internal commands by default.

Table 1: RadEditor tab key behavior in different browsers according to the cursor position.

BrowserTableListDiv/Span/P
FireFoxTable cell navigationHTML elements navigationHTML elements navigation
ChromeTable cell navigationInserts white-spaces within a span elementInserts white-spaces within a span element
IETable cell navigationIndents list elementInserts four   elements

You can select the behavior of IE browser and apply it to the rest (Example 1).

Example 1: Make the RadEditor tab key behavior from IE (Table 1) apply to all browsers.

JavaScript
function OnClientLoad(editor, args) {
	var shortcutManager = editor.get_shortCutManager();
	if (shortcutManager.findShortCutByName("InsertTabMozilla")) {
		shortcutManager.removeShortCut("InsertTabMozilla");
		editor.addShortCut("InsertTab", "TAB");
	}
}

See Also

In this article
See Also
Not finding the help you need?
Contact Support