Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit f0c35f3

Browse files
authored
remove default upload url from the code (#373)
1 parent 3a7166a commit f0c35f3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

examples/index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,14 @@ <h2>jQuery insert plugin for MediumEditor</h2>
7575

7676
$(function () {
7777
$('.editable').mediumInsert({
78-
editor: editor
78+
editor: editor,
79+
addons: {
80+
images: {
81+
fileUploadOptions: {
82+
url: 'upload.php'
83+
}
84+
}
85+
}
7986
});
8087
});
8188
</script>

src/js/images.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
captionPlaceholder: 'Type caption for image (optional)',
1717
autoGrid: 3,
1818
fileUploadOptions: { // See https://github.com/blueimp/jQuery-File-Upload/wiki/Options
19-
url: 'upload.php',
19+
url: null,
2020
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i
2121
},
2222
fileDeleteOptions: {},

0 commit comments

Comments
 (0)