I am using FF pr, and anytime I click one of the buttons that open a new 'dialog' window (smiley, table, etc..) the only thing that displays is 'undefined'.
ya, I saw the same problem, and it is because the JavaScript variable 'dialogArguments' is not being passed into dialog window in firefox. I have a hack working, but I dont know if it breaks anything else. I dont think it does.
In the file 'fckeditorcode_gecko_2.js', add the follow at the top of the file after the comments:
var dlg_args;
Now search for 'oWindow.location.href=pageUrl;' in the same file, and add 'dlg_args=dialogInfo;' before it. It should look something like this:
RE: 'dialog' boxes only display 'undefined' F
RE: 'dialog' boxes only display 'undefined' F
RE: 'dialog' boxes only display 'undefined' F
Nick
RE: 'dialog' boxes only display 'undefined' F
Some of the other plugins that were developed pre the 1.0 release of Firefox don't work that well.
RE: 'dialog' boxes only display 'undefined' F
RE: 'dialog' boxes only display 'undefined' F
In the file 'fckeditorcode_gecko_2.js', add the follow at the top of the file after the comments:
var dlg_args;
Now search for 'oWindow.location.href=pageUrl;' in the same file, and add 'dlg_args=dialogInfo;' before it. It should look something like this:
dlg_args=dialogInfo;oWindow.location.href=pageUrl;
In file 'fckdialog.html', add the following right after the first '<script type="text/javascript">' tag:
if(!window.showModalDialog) { dialogArguments = opener.dlg_args; }
It should look something like this:
<meta name="robots" content="noindex, nofollow" />
<script type="text/javascript">
<!--
if(!window.showModalDialog) { dialogArguments = opener.dlg_args; }
Save both of the files, and it should work.
Ketan
RE: 'dialog' boxes only display 'undefined' F
RE: 'dialog' boxes only display 'undefined' FF
just a little info that this fix worked for me, too.
Firefox 1.0 Final
(Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0)
TabBrowser 1.11
Win2000