File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ composer require laravel-admin-ext/css-editor
9
9
php artisan vendor:publish --tag=laravel-admin-code-mirror
10
10
```
11
11
12
- ## 配置
12
+ ## Configuration
13
13
14
- 在 ` config/admin.php ` 文件的 ` extensions ` ,加上属于这个扩展的一些配置
14
+ In ` extensions ` section of file ` config/admin.php ` ,add following configurations
15
15
``` php
16
16
17
17
'extensions' => [
18
18
19
19
'css-editor' => [
20
20
21
- // 如果要关掉这个扩展,设置为false
21
+ // set to false if you want to disable this exteions
22
22
'enable' => true,
23
23
24
- // 编辑器的配置
24
+ // editor configuration
25
25
'config' => [
26
26
27
27
]
@@ -30,11 +30,11 @@ php artisan vendor:publish --tag=laravel-admin-code-mirror
30
30
31
31
```
32
32
33
- 更多配置可以到 [ CodeMirror文档 ] ( https://codemirror.net/ ) 找到
33
+ The configuration of the editor can be found in [ CodeMirror Documents ] ( https://codemirror.net/ )
34
34
35
- ## 使用
35
+ ## Usage
36
36
37
- 在form表单中使用它:
37
+ Use it in form
38
38
``` php
39
39
$form->css('code');
40
40
@@ -44,17 +44,19 @@ $form->less('code');
44
44
45
45
```
46
46
47
- 设置高度
47
+ Set height
48
48
``` php
49
49
$form->css('code')->height(500);
50
50
```
51
51
52
- ## 支持
52
+ ## Donate
53
53
54
- 如果觉得这个项目帮你节约了时间,不妨支持一下;)
54
+ > Help keeping the project development going, by donating a little. Thanks in advance.
55
+
56
+ [ ![ PayPal Me] ( https://img.shields.io/badge/Donate-PayPal-green.svg )] ( https://www.paypal.me/zousong )
55
57
56
58
![ -1] ( https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg )
57
59
58
60
License
59
61
------------
60
- Licensed under [ The MIT License (MIT)] ( LICENSE ) .
62
+ Licensed under [ The MIT License (MIT)] ( LICENSE ) .
You can’t perform that action at this time.
0 commit comments