Make upload button respect night mode

Also set a title in the input field, so that the file name doesn't show
up.

Signed-off-by: Pedro Ferreira <pedro@dete.st>
This commit is contained in:
Pedro Ferreira 2019-04-12 10:44:40 +02:00
parent 5bb6929767
commit 1801febfe6
2 changed files with 4 additions and 4 deletions

View file

@ -219,8 +219,8 @@ export default class Editor {
makeComment.click(() => {
utils.insertText(this.editor, '> []')
})
uploadImage.bind('change', function (e) {
console.log("tiggered")
var files = e.target.files || e.dataTransfer.files
e.dataTransfer = {}
e.dataTransfer.files = files