feat: Upload remote-hosted images on paste (#8301)

* First pass

* fix

* tidy, tidy

* Determine dimensions

* docs

* test getFileNameFromUrl

* PR feedback

* tsc
This commit is contained in:
Tom Moor
2025-01-30 20:24:07 -05:00
committed by GitHub
parent abaeba5952
commit 28aebc9fbf
18 changed files with 304 additions and 106 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export type Options = {
/** Set to true to replace any existing image at the users selection */
replaceExisting?: boolean;
/** Callback fired to upload a file */
uploadFile?: (file: File) => Promise<string>;
uploadFile?: (file: File | string) => Promise<string>;
/** Callback fired when the user starts a file upload */
onFileUploadStart?: () => void;
/** Callback fired when the user completes a file upload */