Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
z-song committed Sep 23, 2018
1 parent d6386b9 commit b68fea8
Show file tree
Hide file tree
Showing 354 changed files with 6,100 additions and 1,444 deletions.
65 changes: 64 additions & 1 deletion README.md
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).
1,568 changes: 1,568 additions & 0 deletions resources/assets/CHANGES.md

Large diffs are not rendered by default.

1,420 changes: 1,420 additions & 0 deletions resources/assets/LICENSE.md

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions resources/assets/README.md
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.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* (1) http://ckeditor.com/builder
* Visit online builder to build CKEditor from scratch.
*
* (2) http://ckeditor.com/builder/385c76873039eb283de3c5dfbd907400
* (2) http://ckeditor.com/builder/8ff7b71bcccc296bcc3a4a5b82942d17
* Visit online builder to build CKEditor, starting with the same setup as before.
*
* (3) http://ckeditor.com/builder/download/385c76873039eb283de3c5dfbd907400
* (3) http://ckeditor.com/builder/download/8ff7b71bcccc296bcc3a4a5b82942d17
* Straight download link to the latest version of CKEditor (Optimized) with the same setup as before.
*
* NOTE:
Expand All @@ -26,7 +26,7 @@

var CKBUILDER_CONFIG = {
skin: 'moono-lisa',
preset: 'basic',
preset: 'standard',
ignore: [
'.DS_Store',
'.bender',
Expand All @@ -52,18 +52,43 @@ var CKBUILDER_CONFIG = {
'tests'
],
plugins : {
'a11yhelp' : 1,
'about' : 1,
'basicstyles' : 1,
'blockquote' : 1,
'clipboard' : 1,
'easyimage' : 1,
'contextmenu' : 1,
'elementspath' : 1,
'enterkey' : 1,
'entities' : 1,
'filebrowser' : 1,
'floatingspace' : 1,
'format' : 1,
'horizontalrule' : 1,
'htmlwriter' : 1,
'image' : 1,
'indentlist' : 1,
'link' : 1,
'list' : 1,
'magicline' : 1,
'maximize' : 1,
'pastefromword' : 1,
'pastetext' : 1,
'removeformat' : 1,
'resize' : 1,
'scayt' : 1,
'showborders' : 1,
'sourcearea' : 1,
'specialchar' : 1,
'stylescombo' : 1,
'tab' : 1,
'table' : 1,
'tableselection' : 1,
'tabletools' : 1,
'toolbar' : 1,
'undo' : 1,
'uploadimage' : 1,
'wsc' : 1,
'wysiwygarea' : 1
},
languages : {
Expand Down
384 changes: 303 additions & 81 deletions resources/assets/ckeditor4/ckeditor.js → resources/assets/ckeditor.js

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions resources/assets/ckeditor4/lang/af.js

This file was deleted.

Loading

0 comments on commit b68fea8

Please sign in to comment.