second
oFCKeditor has no properties, Line 18only
<html>
<head>
<title></title>
<script type="text/javascript" src="js/fckeditor/fckeditor.js"></script>
<script>
var oFCKeditor
function doSomething() {
oFCKeditor = FCKeditorAPI.GetInstance('fckfield2')
alert(oFCKeditor.GetXHTML(false))
}
</script>
</head>
<body>
<form name="form1" method="post" action="dosomething.php">
<div>
<script type="text/javascript">
oFCKeditor = new FCKeditor('fckfield1')
oFCKeditor.BasePath = 'js/fckeditor/'
oFCKeditor.Height = 170
oFCKeditor.Value = 'blah 1'
oFCKeditor.Create()
</script>
</div>
<div>
<script type="text/javascript">
oFCKeditor = new FCKeditor('fckfield2')
oFCKeditor.BasePath = 'js/fckeditor/'
oFCKeditor.Height = 170
oFCKeditor.Value = 'blah 2'
oFCKeditor.Create()
</script>
</div>
<div><input type="button" value="Submit" onclick="doSomething()"/></div>
</form>
</body>
</html>

Re: A solution for multiple FCK instances in Firefox
http://drupal.org/node/303428#comment-994282
Re: A solution for multiple FCK instances in Firefox
http://drupal.org/node/303428#comment-1048816
editor\js\fckeditorcode_gecko.js
else if (FCKBrowserInfo.IsSafari)
else if (FCKBrowserInfo.IsSafari || FCKBrowserInfo.IsGecko19)
Re: A solution for multiple FCK instances in Firefox
FCKeditorAPI
is not made available to the client code
<html> <head> <script type="text/javascript" src="include/fckeditor/fckeditor.js"></script> <script> function doOnLoad() { var oFCKeditor = new FCKeditor('fckfield1') oFCKeditor.BasePath = 'include/fckeditor/' oFCKeditor.ReplaceTextarea() alert(FCKeditorAPI) } </script> </head> <body onload="doOnLoad()"> <form name="form1" method="post" action="dosomething.php"> <textarea id="fckfield1" name="fckfield1">blah 1</textarea> </form> </body> </html>alert(FCKeditorAPI)asynchronously
<html> <head> <script type="text/javascript" src="js/fckeditor/fckeditor.js"></script> <script> var FCKeditorAPI // need to declare it in order to test it var intFCKCheck // our setTimeout pointer var oFCKeditor // used for our FCKEditor objects function doOnLoad() // called from the body onload event. { // set the FCK polling timeout intFCKCheck = window.setInterval('checkFCKisReady()',500) // create the first editor object to kick off the FCK core code. oFCKeditor = new FCKeditor('fckfield1') oFCKeditor.BasePath = 'js/fckeditor/' oFCKeditor.ReplaceTextarea() } function checkFCKisReady() // this is the polling function { if(typeof(FCKeditorAPI) != 'undefined') // it's available now! { // stop checking already. window.clearInterval(intFCKCheck) // now create as many more FCKEditor objects as you like. oFCKeditor = new FCKeditor('fckfield2') oFCKeditor.BasePath = 'js/fckeditor/' oFCKeditor.ReplaceTextarea() oFCKeditor = new FCKeditor('fckfield3') oFCKeditor.BasePath = 'js/fckeditor/' oFCKeditor.ReplaceTextarea() } } function doSomething() // user has clicked the "submit" button { // Show contents of the 'fckfield3' object so we know this is working. oFCKeditor = FCKeditorAPI.GetInstance('fckfield3') alert(oFCKeditor.GetXHTML(false)) } </script> </head> <body onload="doOnLoad()"> <form name="form1" method="post" action="dosomething.php"> <div><textarea id="fckfield1" name="fckfield1">blah 1</textarea></div> <div><textarea id="fckfield2" name="fckfield2">blah 2</textarea></div> <div><textarea id="fckfield3" name="fckfield3">blah 3</textarea></div> <div><input type="button" value="Submit" onclick="doSomething()"/></div> </form> </body> </html>Re: A solution for multiple FCKEditor instances in Firefox
Re: A solution for multiple FCKEditor instances in Firefox