I wrote a plugin to handle some keystrokes, using the great new feature of 2.4
What would be the preferred way to attach the FCKKeystrokeHandler to the Editor window when the plugin initializes?
At the time the plugin is called, FCK.EditorDocument is not yet valid, so I wrapped the init code in a function, called like that:
FCK.Events.AttachEvent('OnAfterSetHTML', FCKFontSizeKeys_setup ) ;
that works, but that's not too clean, because this code is called whenever the HTML is set.
so, is there a way to access FCK.EditorDocument at the time the plugin loads, or is there an 'onLoad' event that would be called once when the editor is ready?
What would be the preferred way to attach the FCKKeystrokeHandler to the Editor window when the plugin initializes?
At the time the plugin is called, FCK.EditorDocument is not yet valid, so I wrapped the init code in a function, called like that:
FCK.Events.AttachEvent('OnAfterSetHTML', FCKFontSizeKeys_setup ) ;
that works, but that's not too clean, because this code is called whenever the HTML is set.
so, is there a way to access FCK.EditorDocument at the time the plugin loads, or is there an 'onLoad' event that would be called once when the editor is ready?
RE: FCKKeystrokeHandler in plugin
RE: FCKKeystrokeHandler in plugin