PHP code example of super-admin-org / ckeditor

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

    

super-admin-org / ckeditor example snippets


'extensions' => [

    'ckeditor' => [

        // Set to false to disable this extension
        'enable' => true,

        // Global editor configuration
        'config' => [
            'language'    => 'en',
            'height'      => 500,
        ]
    ]
]

$form->ckeditor('content');

$form->ckeditor('content')->options([
    'lang'   => 'fr',
    'height' => 500,
]);

$form->ckeditor('content')->options([
    'contentsCss' => '/css/frontend-body-content.css',
]);

protected function form()
{
    $form = new Form(new Post());

    $form->text('title', 'Title')->rm->ckeditor('body', 'Content')->options([
        'height' => 600,
    ]);

    $form->select('status', 'Status')->options([
        'draft'     => 'Draft',
        'published' => 'Published',
    ]);

    $form->datetime('published_at', 'Publish Date');

    return $form;
}
bash
php artisan vendor:publish --tag=super-admin-ckeditor
bash
php artisan optimize:clear
bash
php artisan vendor:publish --tag=super-admin-ckeditor --force