Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laravel-admin-extensions/ckeditor
Integrate CKEDITOR into laravel-admin
https://github.com/laravel-admin-extensions/ckeditor
ckeditor extension laravel-admin
Last synced: about 1 month ago
JSON representation
Integrate CKEDITOR into laravel-admin
- Host: GitHub
- URL: https://github.com/laravel-admin-extensions/ckeditor
- Owner: laravel-admin-extensions
- License: mit
- Created: 2018-09-18T17:24:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T06:17:40.000Z (about 4 years ago)
- Last Synced: 2024-11-02T19:34:00.724Z (about 1 month ago)
- Topics: ckeditor, extension, laravel-admin
- Language: JavaScript
- Homepage:
- Size: 1.26 MB
- Stars: 30
- Watchers: 2
- Forks: 18
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - ckeditor - CKEditor 4 富文本编辑器 (扩展包 / 字段类扩展包)
README
Integrate CKEDITOR into laravel-admin
======This is a `laravel-admin` extension that integrates `CKEDITOR` into the `laravel-admin` form.
## Screenshot
![qq20180923-191508](https://user-images.githubusercontent.com/1479100/45928434-10944a00-bf76-11e8-918f-9566c7ba4c6b.png)
## Installation
```bash
composer require laravel-admin-ext/ckeditor
```Then
```bash
php artisan vendor:publish --tag=laravel-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' => [
'lang' => 'zh-CN',
'height' => 500,
]
```## Usage
Use it in the form:
```php
$form->ckeditor('content');// Set config
$form->ckeditor('content')->options(['lang' => 'fr', 'height' => 500]);
```## Donate
> Help keeping the project development going, by donating a little. Thanks in advance.
[![PayPal Me](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/zousong)
![-1](https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg)
License
------------
Licensed under [The MIT License (MIT)](LICENSE).