Skip to content

Commit

Permalink
Merge pull request #129 from loopsketch/mod_insertimage
Browse files Browse the repository at this point in the history
make capable insert image on IE11
  • Loading branch information
steveathon authored Mar 10, 2018
2 parents f537626 + 9f366a8 commit 54fcb11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap-wysiwyg.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
var self = this;
editor.focus();
$.each( files, function( idx, fileInfo ) {
if ( /^image\//.test( fileInfo.type ) ) {
if ( /^image\//.test( fileInfo.type ) || /.+\.(bmp|gif|jpg|jpeg|png)$/.test(fileInfo.name.toLowerCase()) ) {
$.when( self.readFileIntoDataUrl( fileInfo ) ).done( function( dataUrl ) {
self.execCommand( "insertimage", dataUrl, editor, options, toolbarBtnSelector );
editor.trigger( "image-inserted" );
Expand Down

0 comments on commit 54fcb11

Please sign in to comment.