if you want to integrate the FCKEditor into a Yii you can do it like this:
You need a Widget:
/protected/components/FCKEditorWidget.php
<?php
class FCKEditorWidget extends CInputWidget
{
// Content will be read from $this->model->$this->field;
public $model;
public $property;
public $height = "375px";
public $width = "100%";
public function run()
{
$controller=$this->controller;
$action=$controller->action;
$this->render('fCKEditorWidget',array(
"model"=>$this->model,
"property"=>$this->property,
"height"=>$this->height,
"width"=>$this->width,
));
}
}
?>
Yes, you can distribute this as an extension. If that is the case, you should assume that the extension would be installed under protected/extensions/fckeditor
but i am getting an error and i am unable to configure it, error description is given below
require_once(C:\wamp\www\gmat\protected\…\FCKEditor.php) [<a href=‘function.require-once’>function.require-once</a>]: failed to open stream: No such file or directory
then i have changed the path as
require_once(C:\wamp\www\gmat\protected\components\FCKEditor.php) [<a href=‘function.require-once’>function.require-once</a>]: failed to open stream: No such file or directory