Difference between #2 and #3 of
How to setup FCKeditor

Revision #3 has been created by Ascomae on May 21, 2009, 2:10:36 PM with the memo:

new configuration-features from 0.0.4
« previous (#2) next (#4) »

Changes

Title unchanged

How to setup FCKeditor

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
In the view where you want to use the FCKeditorWidget:


```php
<?php $this->widget('application.extensions.fckeditor.FCKEditorWidget',array(
        'model'     =>  $m"model"=>$pages,                # Data-Model,         'attribute' => 'Tex"attribute"=>'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/')
 
                        # Path to fckeditor.php
 
    "fckBasePath"=>Yii::app()->baseUrl."/fckeditor/",
 
                                    # Realtive Path to the Editor (from Web-Root)
 
    "toolbarSet"=>"Basic",          #EXISTING(!) Toolbar (see: fckeditor.js)
 
    "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)
 
    ) 
); ?>
```
[...]
+ <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.
3 1
5 followers
Viewed: 20 995 times
Version: 1.1
Category: Tutorials
Tags:
Written by: krillzip
Last updated by: Dark-Sun
Created on: Feb 8, 2009
Last updated: 5 years ago
Update Article

Revisions

View all history