bootstrap-markdown
bootstrap-markdown copied to clipboard
Dropzone path incorrect when image is dropped onto bootstrap-markdown text area
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\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 :)
Here's the PR for this : https://github.com/toopay/bootstrap-markdown/pull/259