feat: add support for pasting image in editor

This commit is contained in:
Muhsin Keloth
2024-08-28 15:31:51 +05:30
parent 3b5f5b41ad
commit fa44166609
@@ -173,6 +173,13 @@ export default {
blur: () => {
this.onBlur();
},
paste: (view, event) => {
const data = event.clipboardData.files;
if (data.length > 0) {
data.forEach(file => this.uploadImageToStorage(file));
event.preventDefault();
}
},
},
});
},