Integrate ckeditor with Yii framework

| Last Updated: | In: 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.

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 :


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:


,