Version 2.0 RC2 release notes says:
----------------------------------------------------------------------------
The "fake" TAB key support (available by default over Gecko browsers is now available over IE too. You can set the number of spaces to add setting the FCKConfig.TabSpaces configuration setting. Set it to 0 (zero) to disable this feature (IE).
----------------------------------------------------------------------------
I can't get this to work in IE7 in 2.4. Looking at the source code, I can see where window.FCKTabHTML is built in fck_ie.js but that doesn't appear to be used anywhere else in the code.
I would like to make the behaviour consistent between Firefox and IE for tab. In fact, is it possible to make the tab key operate normally in Firefox rather than inserting three nbsp ?
Hugh
----------------------------------------------------------------------------
The "fake" TAB key support (available by default over Gecko browsers is now available over IE too. You can set the number of spaces to add setting the FCKConfig.TabSpaces configuration setting. Set it to 0 (zero) to disable this feature (IE).
----------------------------------------------------------------------------
I can't get this to work in IE7 in 2.4. Looking at the source code, I can see where window.FCKTabHTML is built in fck_ie.js but that doesn't appear to be used anywhere else in the code.
I would like to make the behaviour consistent between Firefox and IE for tab. In fact, is it possible to make the tab key operate normally in Firefox rather than inserting three nbsp ?
Hugh

RE: FCKConfig.TabSpaces broken?
RE: FCKConfig.TabSpaces broken?
Continuing to answer my own questions:
I used this code in FCKeditor_OnComplete:
//
// Set up keyboard commands
//
var CTRL = 1000; // from fckconstants.js
var SHIFT = 2000;
var ALT = 4000;
editorInstance.KeystrokeHandler.SetKeystrokes([9, 'MyTab']);
editorInstance.Commands.RegisterCommand('MyTab', new CommandTab);
editorInstance.KeystrokeHandler.SetKeystrokes([SHIFT + 9, 'MyTabShift']);
editorInstance.Commands.RegisterCommand('MyTabShift', new CommandTabShift);
and created two command handlers like this:
//
// Tab command handler.
//
var CommandTab = function(){this.Name = 'MyTab';}
CommandTab.prototype.Execute = function()
{
// send a qooxdoo event - you can do whatever you want here
getParentWidget().createDispatchDataEvent("editor-tab", false); // shift key is up
}
//
// Shift tab command handler.
//
var CommandTabShift = function(){this.Name = 'AblingTabShift';}
CommandTabShift.prototype.Execute = function()
{
// send a qooxdoo event - you can do whatever you want here
getParentWidget().createDispatchDataEvent("editor-tab", true); // shift key is down
}
This successfully stops the insertion of three spaces in FF with the tab key, and means I can get reliable navigation in and out of the editor.
Hugh