sfagnum/kohana-ckeditor

Integration module of WYSIWYG CKEditor to Kohana framework.

dev-master 2013-11-29 21:42 UTC

This package is not auto-updated.

Last update: 2025-07-01 05:32:45 UTC


README

integration module of CKEditor for Kohana 3.3

Example

In you controller:

class Controller_Abstract extends Controller_Template
{
    public $template = 'layouts/main';

    function before()
    {
        parent::before();
		$this->template->editor = '';
    }
    function after()
    {
    	$this->template->editor = Ckeditor::instance();

    	parent::after();
    }

In you 'layouts/main.php' file add: ```html <title>Cool site</title> editor('name', 'Lorem ipsum...', array('width' => 400)); ?> ```