Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
z-song authored Sep 23, 2018
1 parent 6ef931e commit 2a66d66
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ composer require laravel-admin-ext/css-editor
php artisan vendor:publish --tag=laravel-admin-code-mirror
```

## 配置
## Configuration

`config/admin.php`文件的`extensions`,加上属于这个扩展的一些配置
In `extensions` section of file `config/admin.php`,add following configurations
```php

'extensions' => [

'css-editor' => [

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

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

]
Expand All @@ -30,11 +30,11 @@ php artisan vendor:publish --tag=laravel-admin-code-mirror

```

更多配置可以到[CodeMirror文档](https://codemirror.net/)找到
The configuration of the editor can be found in [CodeMirror Documents](https://codemirror.net/)

## 使用
## Usage

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

Expand All @@ -44,17 +44,19 @@ $form->less('code');

```

设置高度
Set height
```php
$form->css('code')->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).
Licensed under [The MIT License (MIT)](LICENSE).

0 comments on commit 2a66d66

Please sign in to comment.