PHP and FCKEditor


1. Download and extract FCKEditor

2. Put this before create instance

include_once(“fckeditor/fckeditor.php”);

3. Put this to load the editor

$oFCKeditor = new FCKeditor(‘p_content’) ;
$oFCKeditor->BasePath = ‘fckeditor/’ ;
$oFCKeditor->Width    = ‘100%’ ;
$oFCKeditor->Height   = ‘600’ ;
$oFCKeditor->Value    = “$pContent” ;
$oFCKeditor->Create() ;

p_content is the (form) element name

make sure the BasePath is correct

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s