#2521: memory leak issue
---------------------+------------------------------------------------------
Reporter: siamakh | Owner:
Type: Bug | Status: new
Priority: High | Milestone:
Component: General | Version:
Keywords: |
---------------------+------------------------------------------------------
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>
--
Ticket URL: <http://dev.fckeditor.net/ticket/2521>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac