CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 FCKeditor

Print topic Send  topic

Author Message
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>
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.