Skip to content

maiconpinto/cakephp-summernote-editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summernote Editor plugin for CakePHP

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require maiconpinto/summernote-editor

Enable Plugin

// config/bootstrap.php

Plugin::load('SummernoteEditor', ['routes' => true]);

How to use

// src/Template/Example/add.ctp OR
// src/Template/Example/edit.ctp

    //echo $this->Form->create($example)
    // [...]
    //echo $this->Form->input('description', ['class' => 'summernote']);
    // OR
    //echo $this->Form->control('description', ['class' => 'summernote']);
    // [...]
    //$this->Form->end();

    echo $this->element('SummernoteEditor.summernote-editor');

If you already require jquery and bootstrap

echo $this->element('SummernoteEditor.summernote-editor', ['jquery' => false, 'bootstrap' => false]);

If you want use minimum layout (to test)

echo $this->element('SummernoteEditor.summernote-editor', ['layout' => true]);

About

Summernote editor WYSIWYG http://summernote.org/ plugin para CakePHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.3%
  • Other 0.7%