Hi,
I am having a very strange problem. Strange because I seem to be the first one to be having this one. I am using FCKEditor in a CMS and I have 4 instances of FCKEditor running on the page. At any given time, 2 are hidden using div property. Everything is working fine, but when I see in the task manager, the memory being used by my browser (in my case IE6, Winxp Pro with SP2), the memory used keeps on adding up every time I come to the content editing page. It goes to as high as 250MB. Am missing something? Is there a cleanup code required to be added somewhere? This is how I am embedding the editor.
<script language="JavaScript1.2" src="/ramsell/htmlEditor/fckeditor.js" type="text/javascript"></script>
<script language="JavaScript1.2" type="text/javascript">
<!--
<!--
window.onload = function()
{
var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/RCA/')+1);
sBasePath = sBasePath + 'htmlEditor/';
var oFCKeditor1 = new FCKeditor('mainText1');
oFCKeditor1.BasePath = sBasePath;
oFCKeditor1.Config['SkinPath'] = sBasePath + 'editor/skins/office2003/';
oFCKeditor1.Config['EditorAreaCSS'] = '/ramsell/RCA/cms/css/style.css';
oFCKeditor1.Height = 400 ;
//oFCKeditor.Config["AutoDetectLanguage"] = false;
//oFCKeditor.Config["DefaultLanguage"]= "en";
oFCKeditor1.ReplaceTextarea();
var o1FCKeditor = new FCKeditor('introText1');
o1FCKeditor.BasePath = sBasePath;
o1FCKeditor.Config['SkinPath'] = sBasePath + 'editor/skins/office2003/';
o1FCKeditor.Config['EditorAreaCSS'] = '/ramsell/RCA/cms/css/style.css';
o1FCKeditor.Height = 200 ;
//oFCKeditor.Config["AutoDetectLanguage"] = false;
//oFCKeditor.Config["DefaultLanguage"]= "en";
o1FCKeditor.ReplaceTextarea();
var oFCKeditor2 = new FCKeditor('mainText2');
oFCKeditor2.BasePath = sBasePath;
oFCKeditor2.Config['SkinPath'] = sBasePath + 'editor/skins/office2003/';
oFCKeditor2.Config['EditorAreaCSS'] = '/ramsell/RCA/cms/css/style.css';
oFCKeditor2.Height = 400 ;
//oFCKeditor.Config["AutoDetectLanguage"] = false;
//oFCKeditor.Config["DefaultLanguage"]= "en";
oFCKeditor2.ReplaceTextarea();
var o2FCKeditor = new FCKeditor('introText2');
o2FCKeditor.BasePath = sBasePath;
o2FCKeditor.Config['SkinPath'] = sBasePath + 'editor/skins/office2003/';
o2FCKeditor.Config['EditorAreaCSS'] = '/ramsell/RCA/cms/css/style.css';
o2FCKeditor.Height = 200 ;
//oFCKeditor.Config["AutoDetectLanguage"] = false;
//oFCKeditor.Config["DefaultLanguage"]= "en";
o2FCKeditor.ReplaceTextarea();
showContentTable(1);
}
//-->
</script>
Any help will be appreciated. Thanks in advance.
Regards,
Piyush Rajput
I am having a very strange problem. Strange because I seem to be the first one to be having this one. I am using FCKEditor in a CMS and I have 4 instances of FCKEditor running on the page. At any given time, 2 are hidden using div property. Everything is working fine, but when I see in the task manager, the memory being used by my browser (in my case IE6, Winxp Pro with SP2), the memory used keeps on adding up every time I come to the content editing page. It goes to as high as 250MB. Am missing something? Is there a cleanup code required to be added somewhere? This is how I am embedding the editor.
<script language="JavaScript1.2" src="/ramsell/htmlEditor/fckeditor.js" type="text/javascript"></script>
<script language="JavaScript1.2" type="text/javascript">
<!--
<!--
window.onload = function()
{
var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/RCA/')+1);
sBasePath = sBasePath + 'htmlEditor/';
var oFCKeditor1 = new FCKeditor('mainText1');
oFCKeditor1.BasePath = sBasePath;
oFCKeditor1.Config['SkinPath'] = sBasePath + 'editor/skins/office2003/';
oFCKeditor1.Config['EditorAreaCSS'] = '/ramsell/RCA/cms/css/style.css';
oFCKeditor1.Height = 400 ;
//oFCKeditor.Config["AutoDetectLanguage"] = false;
//oFCKeditor.Config["DefaultLanguage"]= "en";
oFCKeditor1.ReplaceTextarea();
var o1FCKeditor = new FCKeditor('introText1');
o1FCKeditor.BasePath = sBasePath;
o1FCKeditor.Config['SkinPath'] = sBasePath + 'editor/skins/office2003/';
o1FCKeditor.Config['EditorAreaCSS'] = '/ramsell/RCA/cms/css/style.css';
o1FCKeditor.Height = 200 ;
//oFCKeditor.Config["AutoDetectLanguage"] = false;
//oFCKeditor.Config["DefaultLanguage"]= "en";
o1FCKeditor.ReplaceTextarea();
var oFCKeditor2 = new FCKeditor('mainText2');
oFCKeditor2.BasePath = sBasePath;
oFCKeditor2.Config['SkinPath'] = sBasePath + 'editor/skins/office2003/';
oFCKeditor2.Config['EditorAreaCSS'] = '/ramsell/RCA/cms/css/style.css';
oFCKeditor2.Height = 400 ;
//oFCKeditor.Config["AutoDetectLanguage"] = false;
//oFCKeditor.Config["DefaultLanguage"]= "en";
oFCKeditor2.ReplaceTextarea();
var o2FCKeditor = new FCKeditor('introText2');
o2FCKeditor.BasePath = sBasePath;
o2FCKeditor.Config['SkinPath'] = sBasePath + 'editor/skins/office2003/';
o2FCKeditor.Config['EditorAreaCSS'] = '/ramsell/RCA/cms/css/style.css';
o2FCKeditor.Height = 200 ;
//oFCKeditor.Config["AutoDetectLanguage"] = false;
//oFCKeditor.Config["DefaultLanguage"]= "en";
o2FCKeditor.ReplaceTextarea();
showContentTable(1);
}
//-->
</script>
Any help will be appreciated. Thanks in advance.
Regards,
Piyush Rajput
RE: Memory problem :-S
First, loading the page with the initialization code takes about 10 seconds more than it does without the editors. Older versions took far less time.
Second, every time I hit refresh, memory occupied by IEXPLORE.EXE increases by a little more than 6 Mb. Do we need to hack our own un-initialization routines?
Thanks in advance,
Gabriel
RE: Memory problem :-S
I have the same problem actually. I use a dynamic amount of editors to translate text blocks on a page, so at the moment I have six of them. I usually have to restart IE every hour or so to free up the memory
RE: Memory problem :-S
[ 1058948 ] Memory not freed in IE
RE: Memory problem :-S
More investigation is needed.
... and yes... it comes from MS.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn