bevacqua / woofmark

:dog2: Barking up the DOM tree. A modular, progressive, and beautiful Markdown and HTML editor
https://bevacqua.github.io/woofmark
MIT License
1.63k stars 65 forks source link

Dragging an image from the system ends up pasting a woofmark screenshot in demo #18

Open dandv opened 9 years ago

dandv commented 9 years ago

This is probably a known limitation, but I didn't see an issue for it.

bevacqua commented 9 years ago

This is just because the demo is wired up without a server, and thus XHR isn't really happening in the demo.

You should have a backend endpoint that handles image uploads, as documented here:

https://github.com/bevacqua/woofmark#optionsxhr

This allows you to handle the image upload however you want, and decouples image uploads from the editing experience.

dandv commented 9 years ago

Maybe upload to an imgur account for the demo, no server-side script necessary?

bevacqua commented 9 years ago

That'd work. Would you be interested in contributing that?