diff --git a/js/bootstrap-markdown.js b/js/bootstrap-markdown.js index aca37d9..0e71c30 100644 --- a/js/bootstrap-markdown.js +++ b/js/bootstrap-markdown.js @@ -479,7 +479,7 @@ }); this.on('success', function(file, path) { var text = textarea.val(); - textarea.val(text.substring(0, caretPos) + '\n![description](' + path + ')\n' + text.substring(caretPos)); + textarea.val(text.substring(0, caretPos) + '\n![description](' + path.url + ')\n' + text.substring(caretPos)); }); this.on('error', function(file, error, xhr) { console.log('Error:', error);