Skip to content

Commit 2dc1785

Browse files
committed
changes to README.md
1 parent 4c2d9f1 commit 2dc1785

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

README.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,25 @@ The second handles the file uploads and returns result in json too.
1414

1515
Files to reference
1616

17-
```html
18-
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css" rel="stylesheet">
19-
<link href="//cdn.jsdelivr.net/bootstrap.wysihtml5/0.0.2/bootstrap-wysihtml5-0.0.2.css" rel="stylesheet">
20-
<!-- Placed at the end of the document so the pages load faster -->
21-
<script type="text/javascript" src="//cdn.jsdelivr.net/wysihtml5/0.3.0/wysihtml5-0.3.0.min.js"></script>
22-
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
23-
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
24-
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script>
25-
<script type="text/javascript" src="js/bootstrap-wysihtml5-0.0.2.js"></script>
26-
<script type="text/javascript" src="js/custom_image_and_upload_wysihtml5.js"></script>
27-
<script type="text/javascript" src="js/jqueryupload.js"></script>```
17+
```html
18+
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css" rel="stylesheet">
19+
<link href="//cdn.jsdelivr.net/bootstrap.wysihtml5/0.0.2/bootstrap-wysihtml5-0.0.2.css" rel="stylesheet">
20+
<!-- Placed at the end of the document so the pages load faster -->
21+
<script type="text/javascript" src="//cdn.jsdelivr.net/wysihtml5/0.3.0/wysihtml5-0.3.0.min.js"></script>
22+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
23+
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
24+
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script>
25+
<script type="text/javascript" src="js/bootstrap-wysihtml5-0.0.2.js"></script>
26+
<script type="text/javascript" src="js/custom_image_and_upload_wysihtml5.js"></script>
27+
<script type="text/javascript" src="js/jqueryupload.js"></script>
28+
```
2829

2930

3031
Usage
3132

3233
```html
33-
<textarea class="wysi" placeholder="Enter text ..."></textarea>```
34+
<textarea class="wysi" placeholder="Enter text ..."></textarea>
35+
```
3436

3537

3638
Handlers
@@ -44,7 +46,8 @@ returns a list of images in json format
4446
```json
4547
[{"file":"http://placehold.it/50/B9E4FB/260b50","caption":"This image is 50x50 and uses colors #B9E4FB and #260b50","foreground":"B9E4FB","background":"260b50"},
4648
{"file":"http://placehold.it/60/B09F62/11462b","caption":"This image is 60x60 and uses colors #B09F62 and #11462b","foreground":"B09F62","background":"11462b"},
47-
{"file":"http://placehold.it/70/6ECC43/00374a","caption":"This image is 70x70 and uses colors #6ECC43 and #00374a","foreground":"6ECC43","background":"00374a"}]```
49+
{"file":"http://placehold.it/70/6ECC43/00374a","caption":"This image is 70x70 and uses colors #6ECC43 and #00374a","foreground":"6ECC43","background":"00374a"}]
50+
```
4851

4952

5053
upload.php
@@ -55,4 +58,5 @@ Returns status:0 on failure or status:1 on success both json encoded.
5558
On success also information about the file is send.
5659
Example return value:
5760
```json
58-
{"status":1,"file":"http://placehold.it/50/B9E4FB/260b50","caption":"This image is 50x50 and uses colors #B9E4FB and #260b50","foreground":"B9E4FB","background":"260b50"}```
61+
{"status":1,"file":"http://placehold.it/50/B9E4FB/260b50","caption":"This image is 50x50 and uses colors #B9E4FB and #260b50","foreground":"B9E4FB","background":"260b50"}
62+
```

0 commit comments

Comments
 (0)