https://github.com/open-admin-org/ckeditor
Ckeditor plugin for open-admin
https://github.com/open-admin-org/ckeditor
Last synced: 9 months ago
JSON representation
Ckeditor plugin for open-admin
- Host: GitHub
- URL: https://github.com/open-admin-org/ckeditor
- Owner: open-admin-org
- License: mit
- Created: 2022-01-17T16:15:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T21:52:56.000Z (over 2 years ago)
- Last Synced: 2025-03-14T06:46:05.141Z (over 1 year ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 6
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Integrate CKEDITOR into open-admin
======
This is a `open-admin` extension that integrates `CKEDITOR` into the `open-admin` form.
## Screenshot

## Installation
```bash
composer require open-admin-ext/ckeditor
```
Then
```bash
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.
```php
'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](https://ckeditor.com/docs/ckeditor4/latest/guide/), such as configuration language and height.
```php
'config' => [
'language' => 'de',
'height' => 500,
'contentsCss' => '/css/frontend-body-content.css',
]
```
## Usage
Use it in the form:
```php
$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.
```bash
php artisan optimize:clear
```
License
------------
Licensed under [The MIT License (MIT)](LICENSE).