yuki / myVault

A web interface for HashiCorp Vault which allow to edit secrets with a Markdown editor
https://yuki.github.io/myVault/
GNU General Public License v3.0
0 stars 0 forks source link

Upload images into base64 mode #56

Open yuki opened 6 years ago

yuki commented 6 years ago

Create an option to "upload" images. The idea is to copy this feature: https://www.base64-image.de/

Upload an image, convert into base64, and get the HTML tag to put into the Markdown.

With this, the image is "incrusted" into the text.

yuki commented 6 years ago

https://developer.mozilla.org/en-US/docs/Web/API/FileReader

A good example https://stackoverflow.com/questions/6150289/how-to-convert-image-into-base64-string-using-javascript