ckeditor-integration CKEditor Integration

  1. Documentation
  2. Change Log

This extension helps you to integrate CKEditor (next generation of FCKEditor) in your Yii application.

Screenshot

Note that CKEditor is not included in this extension, You can Download CKEditor form its official site and use it with this extension in your applications.

Resources

Documentation

Requirements
  • Yii 1.0 or above
  • CKEditor 3.4 or above
Installation
  • Extract the release file under protected/extensions
  • Download and extract CKEditor in your application root folder
Usage

See the following code example:

$this->widget('ext.ckeditor.CKEditorWidget',array(
  "model"=>$pages,                 # Data-Model
  "attribute"=>'content',          # Attribute in the Data-Model
  "defaultValue"=>"Test Text",     # Optional

  # Additional Parameter (Check http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html)
  "config" => array(
      "height"=>"400px",
      "width"=>"100%",
      "toolbar"=>"Basic",
      ),

  #Optional address settings if you did not copy ckeditor on application root
  "ckEditor"=>Yii::app()->basePath."/../ckeditor/ckeditor.php",
                                  # Path to ckeditor.php
  "ckBasePath"=>Yii::app()->baseUrl."/ckeditor/",
                                  # Realtive Path to the Editor (from Web-Root)
  ) );

if you need full details of configuration parameters, please visit CKEditor API.

Change Log

October 8, 2010
  • Initial release.
11 0
26 followers
6 855 downloads
Yii Version: 1.1
License: LGPL-3.0
Category: User Interface
Tags:
Developed by: Shahram
Created on: Oct 8, 2010
Last updated: 13 years ago

Downloads

show all