Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
webdevbrian opened this issue Jul 25, 2016 · 1 comment

Comments

@webdevbrian
Copy link
Contributor

webdevbrian commented Jul 25, 2016

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
Copy link
Contributor Author

Here's the PR for this : #259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant