In the pluginsfolder I made a folder called 'FakeDialog' in which i added a file called 'fck_fakedialog.html' That file looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
</head>
<body onload="window.parent.Cancel();">
</body>
</html>
So, inmediatly after opening this dialolg it will be closed. It works like a charm, but as I said: it's an extremely dirty trick !!! So, any better solution would be welcome !!!
BTW: don't forget to run fckpackager, otherwise the change of fck_fitwindow.js will have no effect.
Re: Is it any fix for FCK Editor 2.x
http://dev.fckeditor.net/ticket/5784
Re: Is it any fix for FCK Editor 2.x
Re: Is it any fix for FCK Editor 2.x
In /_source/commandclasses/fckfitwindow.js on line 176 I added this piece of code:
if ( FCKBrowserInfo.IsGecko ) { FCKDialog.OpenDialog( 'FakeDialog', '', FCKConfig.PluginsPath + 'FakeDialog/fck_fakedialog.html', 0, 0 ) ; }This will open a dialog with a size of 0px x 0px.
In the pluginsfolder I made a folder called 'FakeDialog' in which i added a file called 'fck_fakedialog.html'
That file looks like this:
So, inmediatly after opening this dialolg it will be closed.
It works like a charm, but as I said: it's an extremely dirty trick !!!
So, any better solution would be welcome !!!
BTW: don't forget to run fckpackager, otherwise the change of fck_fitwindow.js will have no effect.