I have two instances of fckeditor on a page that point to the same toolbar. One editor works fine while the other does not.
Here is my code for my floating toolbar
<script type="text/javascript" src="../fckeditor/fckeditor.js"></script>
<div id="xToolbar" style="margin-top:6px "></div>
Here is my code for the first instance
<!-- fckeditor -->
<textarea name="homepagearea" id="fckmainarea2column" >Home Page Area</textarea>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor1 = new FCKeditor( 'fckmainarea2column' ) ;
oFCKeditor1.BasePath = "../fckeditor/" ;
oFCKeditor1.ToolbarSet = 'Edit2InstantSites';
oFCKeditor1.Height = "80%" ;
oFCKeditor1.Width = "100%" ;
oFCKeditor1.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor1.ReplaceTextarea() ;
}
</script>
<!-- fckeditor -->
Here is my code for the second instance.
<!-- fckeditor -->
<textarea name="newspagearea" id="fcknewsarea2column" >News Page Area</textarea>
<script type="text/javascript">
<!--
window.onload = function()
{
var oFCKeditor2 = new FCKeditor( 'fcknewsarea2column' ) ;
oFCKeditor2.BasePath = "../fckeditor/" ;
oFCKeditor2.ToolbarSet = 'Edit2InstantSites';
oFCKeditor2.Height = "80%" ;
oFCKeditor2.Width = "100%" ;
oFCKeditor2.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor2.ReplaceTextarea() ;
}
//-->
</script>
<!-- fckeditor -->
I am running a tomcat 5.5 linux server with java. Can anyone help me figure out why I can't get both editors to work from the same toolbar?
Thanks.
Here is my code for my floating toolbar
<script type="text/javascript" src="../fckeditor/fckeditor.js"></script>
<div id="xToolbar" style="margin-top:6px "></div>
Here is my code for the first instance
<!-- fckeditor -->
<textarea name="homepagearea" id="fckmainarea2column" >Home Page Area</textarea>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor1 = new FCKeditor( 'fckmainarea2column' ) ;
oFCKeditor1.BasePath = "../fckeditor/" ;
oFCKeditor1.ToolbarSet = 'Edit2InstantSites';
oFCKeditor1.Height = "80%" ;
oFCKeditor1.Width = "100%" ;
oFCKeditor1.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor1.ReplaceTextarea() ;
}
</script>
<!-- fckeditor -->
Here is my code for the second instance.
<!-- fckeditor -->
<textarea name="newspagearea" id="fcknewsarea2column" >News Page Area</textarea>
<script type="text/javascript">
<!--
window.onload = function()
{
var oFCKeditor2 = new FCKeditor( 'fcknewsarea2column' ) ;
oFCKeditor2.BasePath = "../fckeditor/" ;
oFCKeditor2.ToolbarSet = 'Edit2InstantSites';
oFCKeditor2.Height = "80%" ;
oFCKeditor2.Width = "100%" ;
oFCKeditor2.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor2.ReplaceTextarea() ;
}
//-->
</script>
<!-- fckeditor -->
I am running a tomcat 5.5 linux server with java. Can anyone help me figure out why I can't get both editors to work from the same toolbar?
Thanks.
Re: once instace works while the other does not
Re: once instace works while the other does not
Re: once instace works while the other does not