kohana-module kohana-ckeditor
Integration module of WYSIWYG CKEditor to Kohana framework.
sfagnum/kohana-ckeditor
Integration module of WYSIWYG CKEditor to Kohana framework.
- Friday, November 29, 2013
- by sfagnum
- Repository
- 5 Watchers
- 11 Stars
- 8 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 8 Forks
- 2 Open issues
- 1 Versions
- 0 % Grown
Kohana-CKEditor
integration module of CKEditor for Kohana 3.3, (*1)
Example
In you controller:, (*2)
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:, (*3)
<!DOCTYPE html>
<html>
<head>
<title>Cool site</title>
</head>
<body>
<?php echo $editor->editor('name', 'Lorem ipsum...', array('width' => 400)); ?>
</body>
</html>