Is there any way to override the keystroke shortcuts for your browser (say ctrl-S) to allow them to work as shortcuts for within FCKEditor (to save changes for example)? I am so used to "standard" word processor keystrokes that I am continually triggering browser events instead of FCKEditor events.
Any help?
DLW
Any help?
DLW

RE: Shortcut Keystrokes
RE: Shortcut Keystrokes
Anyone have any ideas as to how (if?) this can be accomplished?
RE: Shortcut Keystrokes
I have a requirement from content authors using the system to map certain keystroke combinations to functions within FCKEditor.
I really need to know:
1. Is it possible to do this using any built in functionality in the current release of FCKEditor (via the API or config files)?
2. If not possible to do this via 1., then what other alternatives are there to do the key mappings? Can you capture keystrokes in some way and test? WOuld I need to write some kind of plugin for FCKEditor from scratch?
Any info on whats involved appreciated as I need to work out if its possible, and secondly how much development effort is needed.
Thanks
RE: Shortcut Keystrokes
Meanwhile I think that the best approach would be to raise a new event "onKeyDown" and then handle that event from your code in any way you like,
In order to add the event I think that this code (untested) might work:
in fck_i_ie.js, Doc_OnKeyDown
adding at the top (below FCKDebug)
if (!FCK.Events.FireEvent( "OnKeyDown", e ) )
return false;
and in fck_1_gecko.js, oOnKeyDown
if (!FCK.Events.FireEvent( "OnKeyDown", e ) ) {
e.preventDefault() ;
e.stopPropagation() ;
return false;
}
But then being able to let the user select keystrokes and mapping them to a function will be another kind of beast.
Regards.