fix: Size of inserted retina images (#6350)

* Fix pasted size of retina images

* lint

* lint
This commit is contained in:
Tom Moor
2024-01-05 19:17:39 -08:00
committed by GitHub
parent 47c13c9916
commit 89d905ebb7
10 changed files with 127 additions and 22 deletions

View File

@@ -47,7 +47,7 @@ const uploadPlugin = (options: Options) =>
}
const pos = tr.selection.from;
insertFiles(view, event, pos, files, options);
void insertFiles(view, event, pos, files, options);
return true;
},
drop(view, event: DragEvent): boolean {
@@ -71,7 +71,7 @@ const uploadPlugin = (options: Options) =>
});
if (result) {
insertFiles(view, event, result.pos, files, options);
void insertFiles(view, event, result.pos, files, options);
return true;
}