Difference between #1 and #10 of
How to setup FCKeditor

Changes

Title changed

SHow to setup FCKeditor - Howto

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

#### updated version of this article which works with **CKEditor 3.x** [here](http://www.yiiframework.com/wiki/352/how-to-setup-ckeditor/ "here")
 
To start with you need to download the latest stable release of [FCKeditor](http://www.fckeditor.net/download "Download").
Extract the downloaded file and place the <i>fckeditor/</i> folder in your applications webroot directory.
[...]
```php
<?php $this->widget('application.extensions.fckeditor.FCKEditorWidget',array(
        'model'     =>  $m"model"=>$pages,                # Data-Model,         '"attribute' => 'Tex"=>'content',
 
   'height'    =>  '400px',
 
            'width'     =>  '100%',
 
            'fckeditor' =>  dirname(
# Attribute in the Data-Model
 
    "height"=>'400px',
 
    "width"=>'100%',
 
    "toolbarSet"=>'Basic',          # EXISTING(!) Toolbar (see: fckeditor.js)
 
    "fckeditor"=>
Yii::app()->basePath).'."/../fckeditor/fckeditor.php'",     'fckBasePath' => Yii::app()->baseUrl.'/fckeditor/')
 
); ?>
 
```
 
 
+ the <b>model</b> property is the instance of the Model to be associated with.
 
+ <b>attribute</b> the Model attribute to be associated with.
 
+ <b>fckeditor</b>, the path to the fckeditor php file.
 
+ <b>fckBasePath</b>, the url to the editor frontend to be loaded inside the iframe.
 
 
If those instructions have been followed exactly the FCKeditor should work correctly.
                    # Path to fckeditor.php
 
    "fckBasePath"=>Yii::app()->baseUrl."/fckeditor/",
 
                                    # Realtive Path to the Editor (from Web-Root)
 
    "config" => array(
 
        "EditorAreaCSS"=>Yii::app()->baseUrl.'/css/index.css',),
 
                                    # http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
 
                                    # Additional Parameter (Can't configure a Toolbar dynamicly)
 
    ) ); ?>
 
```
 
 
+ the <b>model</b> property is the instance of the Model to be associated with.
 
+ <b>attribute</b> the Model attribute to be associated with.
 
+ <b>fckeditor</b>, the path to the fckeditor php file.
 
+ <b>fckBasePath</b>, the url to the editor frontend to be loaded inside the iframe.
 
+ <b>config</b> Most parameter in the fckconfig.js can be changed within this config. http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
 
 
 
If those instructions have been followed exactly the FCKeditor should work correctly.
 
 
### Links
 
 
[Russian Version](http://dbhelp.ru/how-to-setup-fckeditor/page/)
 
 
[updated version of this article works with CKeditor 3.x](http://www.yiiframework.com/wiki/352/how-to-setup-ckeditor/ "updated version of this article works with CKeditor 3.x")
 
3 1
5 followers
Viewed: 32 155 times
Version: 1.1
Category: Tutorials
Tags:
Written by: krillzip
Last updated by: Dark-Sun
Created on: Feb 8, 2009
Last updated: 12 years ago
Update Article

Revisions

View all history