Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
z-song committed Sep 23, 2018
1 parent 8a9b5f1 commit 8ffafcf
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,63 @@
Summernote editor extension for laravel-admin
======

这是一个`laravel-admin`扩展,用来将`Summernote`集成进`laravel-admin`的表单中
This is a `laravel-admin` extension that integrates `Summernote` into the `laravel-admin` form.

## 截图
## Screenshot

![wx20180905-132310](https://user-images.githubusercontent.com/1479100/45072743-f1d92b00-b10e-11e8-9a51-9397fa4fb24e.png)

## 安装
## Installation

```bash
composer require laravel-admin-ext/summernote
```

然后
Then
```bash
php artisan vendor:publish --tag=laravel-admin-summernote
```

## 配置
## Configuration

`config/admin.php`文件的`extensions`,加上属于这个扩展的一些配置
In the `extensions` section of the `config/admin.php` file, add some configuration that belongs to this extension.
```php

'extensions' => [

'summernote' => [

// 如果要关掉这个扩展,设置为false
//Set to false if you want to disable this extension
'enable' => true,

// 编辑器的配置
// Editor configuration
'config' => [

]
]
]

```

编辑器的配置可以到[Summernote文档](https://summernote.org/getting-started/)找到,比如配置语言和高度
The configuration of the editor can be found in [Summernote Documentation](https://summernote.org/getting-started/), such as configuration language and height.
```php
'config' => [
'lang' => 'zh-CN',
'height' => 500,
]
```

## 使用
## Usage

在form表单中使用它:
Use it in the form:
```php
$form->summernote('content');
```

## 支持
## 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)

Expand Down

0 comments on commit 8ffafcf

Please sign in to comment.