From 3c6822cf64d9d72026a63dc0551d18f70a1a2579 Mon Sep 17 00:00:00 2001 From: Brian Kinney Date: Mon, 25 Jul 2016 16:59:26 -0400 Subject: [PATCH] Simple fix for correcting the path url for dropzone markdown images --- js/bootstrap-markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);