Skip to content

Commit 239a349

Browse files
committed
1. Remove prettify.js from the dependencies. It was a mistake.
2. Add comments to the dependencies.
1 parent 840e79b commit 239a349

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,21 @@ http://trantorliu.github.io/bootstrap-editor
2626

2727
## Files to reference
2828
```html
29-
<script src="lib/js/wysihtml5-0.3.0.js"></script>
29+
<!-- Both bootstrap-wysihtml5 and jQuery-File-Upload need jQuery -->
3030
<script src="lib/js/jquery-1.7.2.min.js"></script>
31-
<script src="lib/js/prettify.js"></script>
31+
32+
<!-- Dependencies of bootstrap-wysihtml5 -->
33+
<link rel="stylesheet" type="text/css" href="lib/css/bootstrap-wysihtml5.css"></link>
34+
<link rel="stylesheet" type="text/css" href="lib/css/bootstrap.min.css"></link>
35+
<script src="lib/js/wysihtml5-0.3.0.js"></script>
3236
<script src="lib/js/bootstrap.min.js"></script>
3337
<script src="lib/js/bootstrap-wysihtml5.js"></script>
38+
39+
<!-- Dependencies of jQuery-File-Upload -->
3440
<script src="lib/js/jquery.ui.widget.js"></script>
3541
<script src="lib/js/jquery.iframe-transport.js"></script>
3642
<script src="lib/js/jquery.fileupload.js"></script>
43+
3744
<script src="src/bootstrap-editor.js"></script>
3845
```
3946

@@ -66,7 +73,7 @@ The `done` callback should return an object or an array of objects with the foll
6673
```javascript
6774
{
6875
src: '/path/to/the/image',
69-
alt: 'some alt text' // optional
76+
alt: 'img alt' // optional
7077
}
7178
```
7279

0 commit comments

Comments
 (0)