I'm trying to replace a textarea after the user clicks on a HTML Edit link. The code below works in FF but fails to work in IE 6.0 for me. In IE all I get is a white page instead of the Editor without any error messages at all.
Anyone any ideas?
Marijn.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src='../../fckeditor/fckeditor.js' type='text/javascript'>
</script>
<script type="text/javascript">
function replaceHTML()
{
// 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.
var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
</head>
<body>
<a href="javascript://" id='editLinkcontent_8' onclick="return replaceHTML();">HTML Edit</a>
<h1>FCKeditor - Javascript - Test</h1>
This sample should display a Textarea which changes to a HTML form with an FCKeditor with full features if the HTML Edit Link is clicked.
<hr>
<div>
<textarea name="FCKeditor1" style="WIDTH: 100%; HEIGHT: 200px">This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</textarea>
</div>
<br>
</body>
</html>
Tue, 02/28/2006 - 07:28
#1
RE: ReplaceTextarea: FF works but IE fails
var oFCKeditor = null;
oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
...
There is apparently a memory issue involved with IE.
RE: ReplaceTextarea: FF works but IE fails