Summernote plugin for CakePHP 2.x
JavaScript PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Controller
View/Helper
webroot
.gitignore
README.md

README.md

CakePHP-Summernote

Summernote (http://summernote.org) plugin for CakePHP 2.x

Installation

Your need HTML5 doctype and jQuery enabled in the page. Plugin works fine with jQuery 1.9.1.

You have two ways to install plugin in your app folder:

Standalone plugin:

git clone git://github.com/zhaff/CakePHP-Summernote.git Plugin/Summernote

As submodule:

git submodule add git://github.com/zhaff/CakePHP-Summernote.git Plugin/Summernote

Usage

Bootstrap

<?php
//...some code
CakePlugin::load('Summernote');`

Controller

<?php
class MyController extends AppController
{
    public $helpers = array(
        'Editor' => array(
            'className' => 'Summernote.Summernote'
        ),
    );
}
?>

View

<?php
    echo $this->Form->input('fieldName'),
         $this->Editor->render('fieldName');
?>

To change the height size, use this:

<?php 
    echo $this->Form->input('message', array('class' => 'form-control')), 
        $this->Editor->render('message', array('height' => '200')); 
?>

Known bugs

...

TODO

  1. ....