Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Paste image 🍝 🖼 #337
This PR allows one to paste an image directly into the textarea for editing a post or into one of the editors (Vim/ACE). It is meant to imitate the experience on Github when pasting photos into a textbox.
If the user does not have a Imgur Client Id there will be an error in the console, but otherwise they will not notice any change.
Unfortunately this is a difficult feature to test since it is making the request from the client side and therefore stubbing it will be a difficult undertaking, but I did test it thoroughly manually and ensured all the existing tests are passing.
Consider this a first iteration on this feature. Future iterations can wrap the image upload in our own API which would make this easier to test with Bypass and ultimately find a way to host the images ourselves. For now I believe this is a decent first pass at this type of feature which should make creating TILs faster and more fun.