Hello,
I'm experimenting with FCKeditor to see if it could meet our needs on a new project. For this project I need to capture various keystrokes and change the editor contents in response, for example by centering the current paragraph. I found the documentation for the OnSelectionChange event and used the example code to test it. When running Firefox on Linux this event fires once for virtually every keypress; that's overkill, but would give all the events I need to get the job done. However when running IE 6 on on Win 2K this event doesn't fire for letter keys or the Tab key, fires once for arrow keys, and fires 5 times for 1 press of the Enter key. Can anyone suggest a way to get IE 6 to behave more like Firefox?
If not, is there any other way to capture keystrokes? I looked at writing a plugin, but the docs only show it being invoked from the toolbar.
Thanks,
Steve
I'm experimenting with FCKeditor to see if it could meet our needs on a new project. For this project I need to capture various keystrokes and change the editor contents in response, for example by centering the current paragraph. I found the documentation for the OnSelectionChange event and used the example code to test it. When running Firefox on Linux this event fires once for virtually every keypress; that's overkill, but would give all the events I need to get the job done. However when running IE 6 on on Win 2K this event doesn't fire for letter keys or the Tab key, fires once for arrow keys, and fires 5 times for 1 press of the Enter key. Can anyone suggest a way to get IE 6 to behave more like Firefox?
If not, is there any other way to capture keystrokes? I looked at writing a plugin, but the docs only show it being invoked from the toolbar.
Thanks,
Steve

Re: Need to capture keystrokes in IE
Re: Need to capture keystrokes in IE
1. Copy the FCKConfig.Keystrokes from the default fckconfig.js to my customized version.
2. Added "FCKConfig.Plugins.Add('placeholder', 'en');" to my fckconfig.js.
3. Added "[ CTRL + 71 /*G*/, 'Placeholder' ]," to my FCKConfig.Keystrokes section.
After reloading my browser, I could use Ctrl+g to invoke the Placeholder plugin that ships with FCKeditor. I didn't add a toolbar button because I wanted to make sure that I didn't need to.