-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
354 changed files
with
6,100 additions
and
1,444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,69 @@ | ||
Integrate CKEDITOR into laravel-admin | ||
====== | ||
|
||
Under development | ||
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', | ||
'hegiht' => 500, | ||
] | ||
``` | ||
|
||
## Usage | ||
|
||
Use it in the form: | ||
```php | ||
$form->ckeditor('content'); | ||
|
||
// Set config | ||
$form->ckeditor('content')->options(['lang' => 'fr', 'hegiht' => 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). |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
CKEditor 4 | ||
========== | ||
|
||
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. | ||
http://ckeditor.com - See LICENSE.md for license information. | ||
|
||
CKEditor is a text editor to be used inside web pages. It's not a replacement | ||
for desktop text editors like Word or OpenOffice, but a component to be used as | ||
part of web applications and websites. | ||
|
||
## Documentation | ||
|
||
The full editor documentation is available online at the following address: | ||
https://ckeditor.com/docs/ckeditor4/latest/ | ||
|
||
## Installation | ||
|
||
Installing CKEditor is an easy task. Just follow these simple steps: | ||
|
||
1. **Download** the latest version from the CKEditor website: | ||
http://ckeditor.com. You should have already completed this step, but be | ||
sure you have the very latest version. | ||
2. **Extract** (decompress) the downloaded file into the root of your website. | ||
|
||
**Note:** CKEditor is by default installed in the `ckeditor` folder. You can | ||
place the files in whichever you want though. | ||
|
||
## Checking Your Installation | ||
|
||
The editor comes with a few sample pages that can be used to verify that | ||
installation proceeded properly. Take a look at the `samples` directory. | ||
|
||
To test your installation, just call the following page at your website: | ||
|
||
http://<your site>/<CKEditor installation path>/samples/index.html | ||
|
||
For example: | ||
|
||
http://www.example.com/ckeditor/samples/index.html |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
384 changes: 303 additions & 81 deletions
384
resources/assets/ckeditor4/ckeditor.js → resources/assets/ckeditor.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.