fix: add history capture for paste and drop of images and embeds (#9605)

This commit is contained in:
Marcel Mraz
2025-06-10 14:28:16 +02:00
committed by GitHub
parent 9e77373c81
commit 0d4abd1ddc
5 changed files with 2063 additions and 868 deletions
+9 -1
View File
@@ -499,13 +499,21 @@ export class API {
value: {
files,
getData: (type: string) => {
if (type === blob.type) {
if (type === blob.type || type === "text") {
return text;
}
return "";
},
types: [blob.type],
},
});
Object.defineProperty(fileDropEvent, "clientX", {
value: 0,
});
Object.defineProperty(fileDropEvent, "clientY", {
value: 0,
});
await fireEvent(GlobalTestState.interactiveCanvas, fileDropEvent);
};