the-ckeditor-integration Yii Integrator for CKEditor

  1. Requirements
  2. Installation
  3. Usage
  4. Resources

With this extension you can use the CKEditor (http://ckeditor.com/) within your Yii-Application.

Requirements

  • Yii 1.0 or above
  • CKEditor
    • the CKEditor must be beside (protected, css,...) (DON'T put the CKEditor in /protected it won't work!)

Installation

  • extract the released file under protected/extensions
  • Download and extract the CKEditor in a directory under web-root. (beside 'css' or 'protected')

Usage

see this code:

<?php $this->widget('application.extensions.TheCKEditor.theCKEditorWidget',array(
	'model'=>$pages,				# Data-Model (form model)
	'attribute'=>'content',			# Attribute in the Data-Model
	'height'=>'400px',
	'width'=>'100%',
	'toolbarSet'=>'Basic', 			# EXISTING(!) Toolbar (see: ckeditor.js)
	'ckeditor'=>Yii::app()->basePath.'/../ckeditor/ckeditor.php',
									# Path to ckeditor.php
	'ckBasePath'=>Yii::app()->baseUrl.'/ckeditor/',
									# Relative Path to the Editor (from Web-Root)
	'css' => Yii::app()->baseUrl.'/css/index.css',
									# Additional Parameters
) ); ?>

more optional parameters:

'config' => array('toolbar'=>array(
	     array( 'Source', '-', 'Bold', 'Italic', 'Underline', 'Strike' ),
	    array( 'Image', 'Link', 'Unlink', 'Anchor' ),
	 ),);

Resources

this extension is built upon "FCKeditor-integration" extension which is outdated now

3 1
15 followers
5 046 downloads
Yii Version: 1.1
License: GPL-3.0
Category: User Interface
Developed by: Dark-Sun
Created on: Jul 13, 2012
Last updated: 12 years ago

Downloads

show all

Related Extensions