FCK 2.0 RC1 works perfectly on XP/IE6. But when I tried on win98 (SE 4.10.2222 A) and IE 6.0.2800.1106 it crashes. The code is quite simple: main window has a link to another page, which is a pop-up window. This popup window has FCK toolbar using textarea and a close button. When close button is pushed - crash! I read something on this forum about using submit button named submit - I change the name, but it still crashes:
<head>
<title>Untitled</title>
<script type="text/javascript" src="FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ToolbarSet="MARS";
oFCKeditor.ReplaceTextarea() ;
}
</script>
</head>
<body>
<h1>Hello World from FCK</h1>
<form method="post" action="z_test1.php" name="theForm">
<input type="hidden" name="action">
<textarea id="MyTextarea" name="MyTextarea">This is <b>the</b> initial value.</textarea>
<input type="submit" name="b1" value ="Cancel-1" OnClick="document.theForm.action.value='Cancel1';">
<input type="submit" name="b2" value ="Cancel-2" OnClick="window.close();return false;">
<p>Cancel1 closes window indirectly</p>
<p>Cancel2 closes window directly (server does not know)</p>
</form>
</body>
<head>
<title>Untitled</title>
<script type="text/javascript" src="FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var sBasePath = "<?php print $basedir;?>/FCKeditor/";
var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ToolbarSet="MARS";
oFCKeditor.ReplaceTextarea() ;
}
</script>
</head>
<body>
<h1>Hello World from FCK</h1>
<form method="post" action="z_test1.php" name="theForm">
<input type="hidden" name="action">
<textarea id="MyTextarea" name="MyTextarea">This is <b>the</b> initial value.</textarea>
<input type="submit" name="b1" value ="Cancel-1" OnClick="document.theForm.action.value='Cancel1';">
<input type="submit" name="b2" value ="Cancel-2" OnClick="window.close();return false;">
<p>Cancel1 closes window indirectly</p>
<p>Cancel2 closes window directly (server does not know)</p>
</form>
</body>
RE: FCK crashes in popup window on Win98/IE6
Hello,![:)](http://b.cksource.com/a/2/img/smilies/icon_e_smile.gif)
I have a similar problem with it in IE6 with XP. SO it's definately not perfect in XP. If you create a fckeditor in a popup window, and then close that window, the parent that created the window is dead. It then requires terminating IE6 window (it no longer responds) in order to start over. This is a pretty serious bug I'd say as it results in a total IE6 (under XP) collapse.
It's also quite common to want to open a quick edit window in a popup to edit some details or in my case an email that you can send. I'd like to work on fixing this now but I don't have the foggiest where to start and to add fixing this code on top of my already heavy burden writing my own php application may be more than I can do right now. If someone has clues where to look on this issue then I'd take it up and see what I can do to fix it...
Chris