Hi @ all,
I have written a FCK-Plugin to select my CSS-styles via keystrokes. I have some problems with IE 6/7 and FF 3.0.3.
IE-problems:
- If I mark a text and use the keystroke CTRL + ALT + 72 for SC_test_7, the FCKeditor lost the mark.
- If I mark a text in a table and use any keystroke, the table collapses and I get a Javascript (Line: 57, Sign: 214, Error: Object needed).
FF-problems:
- It's not possible to switch between the keystrokes which create a <P> and a <H1>. I have to select the line again, to change it.
- If I mark a text and use the keystroke CTRL + ALT + 72 for SC_test_7, the FCKeditor lost the mark.
- In a table it creates many many many many many mistakes.
Can someone help me to correct my script? Is there a easier way to write this plugin?
Thanks,
matze (Sorry for my spelling, my english is not very well )
fckconfig.js:
FCKConfig.Plugins.Add( 'style_sc' ); ... [ CTRL + ALT + 65 /*A*/, 'SC_test_1' ], [ CTRL + ALT + 66 /*B*/, 'SC_test_2' ], ... [ CTRL + ALT + 72 /*H*/, 'SC_test_7' ], ...
Re: Styles via keystrokes plugin
I found the "FCKStyleCommand"-function in the fckeditorcode_x.js, which I think change the styles.
Now I copied this function in my plugin and renamed it. But now I need reference of the object "B".
How can I get "B"?
Someone know, if this solution is a possible one?
My fckplugin.js:
My fckstyles.xml: