In my webpage i load the fckditor like this at the bottom of my page:
<script language="JavaScript">
if (document.getElementById('ta')==null)
{
//some code to run.
}
else
{
var oFCKeditor = new FCKeditor( 'ta' ) ;
oFCKeditor.BasePath = 'fck/' ;
oFCKeditor.Height = 200;
oFCKeditor.ToolbarSet = "Default";
oFCKeditor.ReplaceTextarea() ;
}
</script>
Why am i not loading it from the header is because of the webpage is a php file and create the textarea through php. So if i load it in the header, there wont be any textareas to transform to fckeditors.
Now to my question. Is it recommended that i load the fckeditor with PHP like in the sample files? does it work the same if i load it through javascript?
I use Fckeditor 2.0
Thanx in advance
Jay.
<script language="JavaScript">
if (document.getElementById('ta')==null)
{
//some code to run.
}
else
{
var oFCKeditor = new FCKeditor( 'ta' ) ;
oFCKeditor.BasePath = 'fck/' ;
oFCKeditor.Height = 200;
oFCKeditor.ToolbarSet = "Default";
oFCKeditor.ReplaceTextarea() ;
}
</script>
Why am i not loading it from the header is because of the webpage is a php file and create the textarea through php. So if i load it in the header, there wont be any textareas to transform to fckeditors.
Now to my question. Is it recommended that i load the fckeditor with PHP like in the sample files? does it work the same if i load it through javascript?
I use Fckeditor 2.0
Thanx in advance
Jay.