How to add FCKeditor in Symfony

1. Download sfWidgetFormTextareaFCKEditor.class.php.docx and save the code inside the doc as sfWidgetFormTextareaFCKEditor.class.php put this file to {Your Project Name}/lib folder.
2. Download FCKEditor (from and unpack it to {Your Project Name}/web/js/fckeditor
3. In the “configure()” method of your form class, configure the fields where you want to use FCKEditor:

$this->widgetSchema[‘address’] = new sfWidgetFormTextareaFCKEditor(
‘width’ => 750,
‘height’ => 350,
‘tool’ => ‘Default’, // name of a configured toolbar
‘config’=> ‘fckeditor/fckconfig.js’ // points to web/js/myfckconfig.js

4. You can customize the configuration for FCKEditor, found in {Your Project Name}/web/js/ fckeditor/fckconfig.js


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: