Integrate ckeditor with Yii framework

By Prem Tiwari in Yii framework. Updated on


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 :

Sharing is caring!


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

You might also like:

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.