Hey guys,
we have been using FCKEditor for the last 7-8 months and we have recently had reports of the editor crashing peoples browsers when using dialogue boxes.
We spent some time yesterday looking into this and were able to reproduce it.
it also happens if you edit the source and click OK within a short amount of time.
We looked into debugging this further and found that the error occurs when it gets into
We decided to not go into the code further and instead found a work around for the problem. We put the FireEvent into a function and then called our new function from a setTimeout of 200ms.
This has fixed the issue for us however it is a dirty fix. Has anyone else had this problem? Is there an official fix anywhere? It looks like the issue is the dialog trying to update the Dom of the parent window before it is allowed too.
we have been using FCKEditor for the last 7-8 months and we have recently had reports of the editor crashing peoples browsers when using dialogue boxes.
We spent some time yesterday looking into this and were able to reproduce it.
Insert an image into the page, click source and immediately click OK.
it also happens if you edit the source and click OK within a short amount of time.
We looked into debugging this further and found that the error occurs when it gets into
FCKEvents.prototype.FireEventIn particular on the second iteration of the for loop
C=(D[i](this.Owner,B)&&C);
We decided to not go into the code further and instead found a work around for the problem. We put the FireEvent into a function and then called our new function from a setTimeout of 200ms.
fckdialog.html function Cancel( dontFireChange ) { if ( !dontFireChange && !window.dialogArguments.Editor.FCK.EditMode ) { // All dialog windows, by default, will fire the "OnSelectionChange" // event, no matter the Ok or Cancel button has been pressed. var t = setTimeout(dialogFix, 200) ; } window.close() ; } function dialogFix() { window.dialogArguments.Editor.FCK.Events.FireEvent( 'OnSelectionChange' ) };
This has fixed the issue for us however it is a dirty fix. Has anyone else had this problem? Is there an official fix anywhere? It looks like the issue is the dialog trying to update the Dom of the parent window before it is allowed too.
Re: Internet Explorer Crashes when Source window closes
I'm running FCKeditor 2.6 Beta 1.
And I'm trying to create a link of an Image and when i hit OK the error appear.
Getting error:
Row: 389
Char: 5
Error: unidentified
Code: 0
URL: fckdialog.html
I have tryed the fix above but with no success.
Re: Internet Explorer Crashes when Source window closes