open-admin-ext / ckeditor
Integrate CKEDITOR into open-admin
Installs: 4 534
Dependents: 2
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 4
Open Issues: 0
Requires
- php: >=7.0.0
- ckeditor/ckeditor: 4.21
- laravel/framework: >=7.0
- open-admin-org/open-admin: ~1.0
Requires (Dev)
- laravel/laravel: ~7.0
- phpunit/phpunit: ~6.0
README
This is a open-admin
extension that integrates CKEDITOR
into the open-admin
form.
Screenshot
Installation
composer require open-admin-ext/ckeditor
Then
php artisan vendor:publish --tag=open-admin-ckeditor
Configuration
In the extensions
section of the config/admin.php
file, add some configuration that belongs to this extension.
'extensions' => [ 'ckeditor' => [ //Set to false if you want to disable this extension 'enable' => true, // Editor configuration 'config' => [ ] ] ]
The configuration of the editor can be found in CKEditor Documentation, such as configuration language and height.
'config' => [ 'language' => 'de', 'height' => 500, 'contentsCss' => '/css/frontend-body-content.css', ]
Usage
Use it in the form:
$form->ckeditor('content'); // Set config $form->ckeditor('content')->options(['lang' => 'fr', 'height' => 500,'contentsCss' => '/css/frontend-body-content.css']);
Problems?
If ckeditor is not showing up and tells you that it's not found run the lines below to clear the compiled services and packages.
php artisan optimize:clear
License
Licensed under The MIT License (MIT).