mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-09-24 16:40:55 -06:00
[wip upload-image] Allow image upload with copy-paste
This commit is contained in:
parent
7001aac954
commit
078c425a1e
@ -1580,6 +1580,10 @@ function EasyMDE(options) {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
self.uploadImages(event.dataTransfer.files);
|
self.uploadImages(event.dataTransfer.files);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.codemirror.on('paste', function(cm, event) {
|
||||||
|
self.uploadImages(event.clipboardData.files);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user