Hi All,
I'm hoping someone might be able to help with a pretty serious issue I've encountered. I've setup a website which makes extensive use of Ajax and FCKEditor. However I've just noticed that I'm getting serious memory leaks in every browser I've tested - IE, FF3, Google Chrome, and Safari for PC.
I'm using the ReplaceTextarea method to add the FCKEditor instance to the forms.
Each time I create an instance of the editor, memory usage goes up by approximately 3-4MB. The only way I can free up the memory again is to close the browser, simply refreshing the page doesn't work.
I've tried keeping a reference to the editor in a javascript variable, and then calling "delete", but it doesn't help.
Is there some way to fully unload the FCKEditor when submitting the form, or unloading the current page?
I'm not sure if it makes a difference or not, but I'm loading the HTML form into a div using Ajax.Updater (from the prototype library). I then loop through the form elements, and whenever a textarea is encountered with a particular expando property " inputType=""html"" " I create an FCK instance.
If I turn off the FCKEditor code, then the memory leak does not occur. So it doesn't seem as though the Ajax.Updater (innerHTML?) is causing the issue directly.
Any ideas would be very much appreciated.
Note: I'm using version 2.6.3
Thanks,
EJ
I'm hoping someone might be able to help with a pretty serious issue I've encountered. I've setup a website which makes extensive use of Ajax and FCKEditor. However I've just noticed that I'm getting serious memory leaks in every browser I've tested - IE, FF3, Google Chrome, and Safari for PC.
I'm using the ReplaceTextarea method to add the FCKEditor instance to the forms.
Each time I create an instance of the editor, memory usage goes up by approximately 3-4MB. The only way I can free up the memory again is to close the browser, simply refreshing the page doesn't work.
I've tried keeping a reference to the editor in a javascript variable, and then calling "delete", but it doesn't help.
Is there some way to fully unload the FCKEditor when submitting the form, or unloading the current page?
I'm not sure if it makes a difference or not, but I'm loading the HTML form into a div using Ajax.Updater (from the prototype library). I then loop through the form elements, and whenever a textarea is encountered with a particular expando property " inputType=""html"" " I create an FCK instance.
If I turn off the FCKEditor code, then the memory leak does not occur. So it doesn't seem as though the Ajax.Updater (innerHTML?) is causing the issue directly.
Any ideas would be very much appreciated.
Note: I'm using version 2.6.3
Thanks,
EJ
Re: Please help, serious memory leak in all browsers