PHP code example of maiconpinto / summernote-editor

1. Go to this page and download the library: Download maiconpinto/summernote-editor library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

maiconpinto / summernote-editor example snippets


// config/bootstrap.php

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

// 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');

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

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