warrenk1
Posts: 21
|
| Posted: 10/26/2006, 10:36 AM |
|
I just setup FCKeditor on a webpage and it works great. I do have a question though. I have more then one text field on my page that I want to add the editor to. Do I have to repeat the following code below for each field? If not, how do I do this?
<script type="text/javascript" src="./fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var sBasePath = './fckeditor/' ;
var oFCKeditor = new FCKeditor('textarea_name') ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Width = '600px';
oFCKeditor.Height = '400px';
oFCKeditor.ReplaceTextarea() ;
}
</script>
And in the htlm:
<textarea id="textarea_name" name="textarea_name" rows="3" cols="10"></textarea>
|
 |
 |
|