Skip to content

Commit 4c2d9f1

Browse files
committed
changes to README.md
1 parent 5a9c2b4 commit 4c2d9f1

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

README.md

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

1515
Files to reference
1616

17-
`<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css" rel="stylesheet">
17+
```html
18+
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css" rel="stylesheet">
1819
<link href="//cdn.jsdelivr.net/bootstrap.wysihtml5/0.0.2/bootstrap-wysihtml5-0.0.2.css" rel="stylesheet">
1920
<!-- Placed at the end of the document so the pages load faster -->
2021
<script type="text/javascript" src="//cdn.jsdelivr.net/wysihtml5/0.3.0/wysihtml5-0.3.0.min.js"></script>
@@ -23,12 +24,13 @@ Files to reference
2324
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script>
2425
<script type="text/javascript" src="js/bootstrap-wysihtml5-0.0.2.js"></script>
2526
<script type="text/javascript" src="js/custom_image_and_upload_wysihtml5.js"></script>
26-
<script type="text/javascript" src="js/jqueryupload.js"></script>`
27+
<script type="text/javascript" src="js/jqueryupload.js"></script>```
2728

2829

2930
Usage
3031

31-
`<textarea class="wysi" placeholder="Enter text ..."></textarea>`
32+
```html
33+
<textarea class="wysi" placeholder="Enter text ..."></textarea>```
3234

3335

3436
Handlers
@@ -39,9 +41,10 @@ imagelist.php
3941

4042
When you change the name / uri you have to change it in custom_image_and_upload_wysihtml5.js too
4143
returns a list of images in json format
42-
`[{"file":"http://placehold.it/50/B9E4FB/260b50","caption":"This image is 50x50 and uses colors #B9E4FB and #260b50","foreground":"B9E4FB","background":"260b50"},
44+
```json
45+
[{"file":"http://placehold.it/50/B9E4FB/260b50","caption":"This image is 50x50 and uses colors #B9E4FB and #260b50","foreground":"B9E4FB","background":"260b50"},
4346
{"file":"http://placehold.it/60/B09F62/11462b","caption":"This image is 60x60 and uses colors #B09F62 and #11462b","foreground":"B09F62","background":"11462b"},
44-
{"file":"http://placehold.it/70/6ECC43/00374a","caption":"This image is 70x70 and uses colors #6ECC43 and #00374a","foreground":"6ECC43","background":"00374a"}]`
47+
{"file":"http://placehold.it/70/6ECC43/00374a","caption":"This image is 70x70 and uses colors #6ECC43 and #00374a","foreground":"6ECC43","background":"00374a"}]```
4548

4649

4750
upload.php
@@ -51,4 +54,5 @@ A multipart/form-data request is send to the handler like: Content-Disposition:
5154
Returns status:0 on failure or status:1 on success both json encoded.
5255
On success also information about the file is send.
5356
Example return value:
54-
`{"status":1,"file":"http://placehold.it/50/B9E4FB/260b50","caption":"This image is 50x50 and uses colors #B9E4FB and #260b50","foreground":"B9E4FB","background":"260b50"}`
57+
```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"}```

0 commit comments

Comments
 (0)