bootstrap-markdown icon indicating copy to clipboard operation
bootstrap-markdown copied to clipboard

Dropzone path incorrect when image is dropped onto bootstrap-markdown text area

Open webdevbrian opened this issue 9 years ago • 1 comments
trafficstars

This is a bug with the success callback of the image upload in the bootstrap-markdown plugin, it's calling just "path" however path is an object, so the fix is to append "path.url".

The fix (around line 482): textarea.val(text.substring(0, caretPos) + '\n![description](' + path.url + ')\n' + text.substring(caretPos));

I'll make a PR for this later on, but just incase I get hit by a car and someone else has the same bug trying to incorporate dropzone :)

webdevbrian avatar Jul 25 '16 15:07 webdevbrian

Here's the PR for this : https://github.com/toopay/bootstrap-markdown/pull/259

webdevbrian avatar Jul 25 '16 21:07 webdevbrian