PHP code example of open-admin-ext / ckeditor

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

    

open-admin-ext / ckeditor example snippets



    'extensions' => [

        'ckeditor' => [

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

            // Editor configuration
            'config' => [

            ]
        ]
    ]


    'config' => [
        'language'      => 'de',
        'height'        => 500,
        'contentsCss'   => '/css/frontend-body-content.css',
    ]

$form->ckeditor('content');

// Set config
$form->ckeditor('content')->options(['lang' => 'fr', 'height' => 500,'contentsCss' => '/css/frontend-body-content.css']);
bash
php artisan vendor:publish --tag=open-admin-ckeditor
bash
php artisan optimize:clear