﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2521	Memory leak issue	siamakh		"I am experiencing a memory leak on the client side. I have installed fck editor 2.6.3. I created the below test.html under fckeditor/html folder. Please try this and click on addFCk and removeFCK (in the same order) for several times and notice that the memory used by the internet browser grows more and more.

<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"">
<html xmlns=""http://www.w3.org/1999/xhtml"">
<head>
	<title>FCKeditor - Sample</title>
	<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"" />
	<meta name=""robots"" content=""noindex, nofollow"" />
	<link href=""../sample.css"" rel=""stylesheet"" type=""text/css"" />
	<script type=""text/javascript"" src=""../../fckeditor.js""></script>
</head>
<body>

	<p><a href=""javascript:;"" onclick=""addFCK();"">Add FCK</a></p>

	<p><a href=""javascript:;"" onclick=""removeFCK();"">Remove FCK</a></p>

	<div id=""myDiv"">
		This sample displays a normal HTML form with an FCKeditor with full features enabled.
	</div>
	<hr />
	<script type=""text/javascript"">
	<!--
	// Automatically calculates the editor base path based on the _samples directory.
	// This is usefull only for these samples. A real application should use something like this:
	// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
	function addFCK() 
	{
		var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;

		var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
		oFCKeditor.BasePath	= sBasePath ;
		oFCKeditor.Height	= 300 ;
		oFCKeditor.Value	= '<p>This is some <strong>sample text<\/strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor<\/a>.<\/p>' ;

		var newdiv = document.createElement('div');
		newdiv.setAttribute('id','fckDiv');
		newdiv.innerHTML = oFCKeditor.CreateHtml() ;
		
		var myDiv = document.getElementById('myDiv');
		myDiv.appendChild(newdiv);
	}
	
	function removeFCK() {
	  var myDiv = document.getElementById('myDiv');
	  var fckDiv = document.getElementById('fckDiv');
	  myDiv.removeChild(fckDiv);
	}	
	//-->
	</script>
	<br />
</body>
</html>
"	Bug	closed	Must have (possibly next milestone)		General	FCKeditor 2.3.2	wontfix		
