PHP code example of cakecoded / ckeditor

1. Go to this page and download the library: Download cakecoded/ckeditor 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/ */

    

cakecoded / ckeditor example snippets


Plugin::load('CkEditor');

public $helpers = ['CkEditor.Ck'];

echo $this->Ck->input('field_name');

echo $this->Form->input('field_name');

echo $this->Form->input($input, $options, $ckEditorOptions, $ckEditorUrl, $ckEditorPlugins);

@param string $input

@param array $options

@param array $ckEditorOptions

@param string $ckEditorUrl

@param array $ckEditorPlugins

echo $this->Ck->input('category.description');

echo $this->Ck->input('field_name', ['label' => 'A unique label']);

echo $this->Ck->input('field_name', [], ['fullPage' => true, 'allowedContent' => 'true']);

echo $this->Ck->input('field_name', [], [], '/js/ckeditor.js');

echo $this->Ck->input('field_name', [], [], null, [['myplugin', '/ckplugins/myplugin/', 'myplugin.js']]);

echo $this->Ck->input('field_name', ['label' => 'A unique label'], ['fullPage' => true, 'allowedContent' => 'true'], '/js/ckeditor.js', [['myplugin', '/ckplugins/myplugin/', 'myplugin.js']]);