Skip to content

Commit 8e3d9bd

Browse files
committed
fix integration document markdown
1 parent 330f711 commit 8e3d9bd

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

doc/integration.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -96,31 +96,31 @@ If you are going to use filemanager independently, meaning set the value of an i
9696

9797
Specify the id to the input and image preview by `data-input` and `data-preview`.
9898

99-
```html
100-
<div class="input-group">
101-
<span class="input-group-btn">
102-
<a id="lfm" data-input="thumbnail" data-preview="holder" class="btn btn-primary">
103-
<i class="fa fa-picture-o"></i> Choose
104-
</a>
105-
</span>
106-
<input id="thumbnail" class="form-control" type="text" name="filepath">
107-
</div>
108-
<img id="holder" style="margin-top:15px;max-height:100px;">
109-
```
99+
```html
100+
<div class="input-group">
101+
<span class="input-group-btn">
102+
<a id="lfm" data-input="thumbnail" data-preview="holder" class="btn btn-primary">
103+
<i class="fa fa-picture-o"></i> Choose
104+
</a>
105+
</span>
106+
<input id="thumbnail" class="form-control" type="text" name="filepath">
107+
</div>
108+
<img id="holder" style="margin-top:15px;max-height:100px;">
109+
```
110110

111111
1. Import lfm.js(run `php artisan vendor:publish` if you need).
112112

113-
```javascript
114-
<script src="/vendor/laravel-filemanager/js/lfm.js"></script>
115-
```
113+
```javascript
114+
<script src="/vendor/laravel-filemanager/js/lfm.js"></script>
115+
```
116116

117117
1. Init filemanager with type. (requires jQuery)
118118

119-
```javascript
120-
$('#lfm').filemanager('image');
121-
```
119+
```javascript
120+
$('#lfm').filemanager('image');
121+
```
122122
or
123123

124-
```javascript
125-
$('#lfm').filemanager('file');
126-
```
124+
```javascript
125+
$('#lfm').filemanager('file');
126+
```

0 commit comments

Comments
 (0)