You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`<textarea class="wysi" placeholder="Enter text ..."></textarea>`
32
+
```html
33
+
<textareaclass="wysi"placeholder="Enter text ..."></textarea>```
32
34
33
35
34
36
Handlers
@@ -39,9 +41,10 @@ imagelist.php
39
41
40
42
When you change the name / uri you have to change it in custom_image_and_upload_wysihtml5.js too
41
43
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"},
43
46
{"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"}]```
45
48
46
49
47
50
upload.php
@@ -51,4 +54,5 @@ A multipart/form-data request is send to the handler like: Content-Disposition:
51
54
Returns status:0 on failure or status:1 on success both json encoded.
52
55
On success also information about the file is send.
53
56
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