I have FCKeditor v2.5.1 integrated with an ASP.NET v2 website, and it's all working fine.
I now need to switch from a cut-down toolbar when the editor occupies only a small part of the screen, to a fully-featured one when it's maximised using the FitWindow command.
So far I've implemented the following really ugly solution:
- switch to _source copy of the javascript files
- edit \_source\commandclasses\fckfitwindow.js, so that it calls, for instance, FCK.ToolbarSet.Load("OriginalFull"), at the end of the Execute method's maximise or minimise operation.
I haven't yet got hold of the CK Packager to recompress the edited script, since although it seems to work Ok, I'm aware that this is a pretty horrible solution.
If there's a more elegant way of achieving the same thing - ideally by handling a suitable event outside the control and therefore not having to change the editor itself at all, I'd be very grateful for some hints.
Thanks,
Chris
I now need to switch from a cut-down toolbar when the editor occupies only a small part of the screen, to a fully-featured one when it's maximised using the FitWindow command.
So far I've implemented the following really ugly solution:
- switch to _source copy of the javascript files
- edit \_source\commandclasses\fckfitwindow.js, so that it calls, for instance, FCK.ToolbarSet.Load("OriginalFull"), at the end of the Execute method's maximise or minimise operation.
I haven't yet got hold of the CK Packager to recompress the edited script, since although it seems to work Ok, I'm aware that this is a pretty horrible solution.
If there's a more elegant way of achieving the same thing - ideally by handling a suitable event outside the control and therefore not having to change the editor itself at all, I'd be very grateful for some hints.
Thanks,
Chris

Re: Switching toolbars after FitWindow maximise or minimise