Integrate ckeditor with Yii framework

Prem Tiwari - - Yii framework


This extension is used to widget uses CHtml:activeTextArea to create a textarea, and also creates a CKEditor instance and then replaces the textarea with a CKEditor.

yii-ckeditor

Download CKEditor from CKEditor extension

Requirements

This extension was created using Yii 1.1.9, but I would expect it to run on most 1.1 frameworks.

Installation

Use of this extension is simple. Simply unzip the extension and place the folder inside the extensions folder :

This will create a file structure as follows :

Usage in _form.php page

Replace active TextArea with bellow code :

if you want to use custom configuration of CKEditor, then use the bellow code :


Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer and a blogger by hobby.

Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.