Skip to content

Commit 01308f9

Browse files
committed
Issue #1 - Set the drag & drop zone to the entire modal.
I added a sentence `locale.en.image.usage`. Other language supports should be added.
1 parent e7e9cce commit 01308f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/bootstrap-wysihtml5.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"image": function(locale, options) {
6868
var size = (options && options.size) ? ' btn-'+options.size : '';
6969
var fileUploader = options.fileUpload ?
70-
"<input name='file' class='file-uploader' type='file' multiple><p class='uploaded'>" : "";
70+
"<input name='file' class='file-uploader' type='file' multiple><br />" + locale.image.usage + "<p class='uploaded'>" : "";
7171

7272
return "<li>" +
7373
"<div class='bootstrap-wysihtml5-insert-image-modal modal hide fade'>" +
@@ -301,7 +301,8 @@
301301
image = document.createTextNode(image.alt || image.src);
302302
uploaded.append("<br />").append(image);
303303
});
304-
}
304+
},
305+
dropzone: insertImageModal
305306
}));
306307
}
307308

@@ -529,6 +530,7 @@
529530
image: {
530531
insert: "Insert image",
531532
cancel: "Cancel",
533+
usage: "Enter URL, drag & drop here, or select from your computer"
532534
},
533535
html: {
534536
edit: "Edit HTML"

0 commit comments

Comments
 (0)