fix(desktop): add native clipboard image paste and fix text paste (#12682)
This commit is contained in:
parent
d1ebe0767c
commit
d5036cf01f
7 changed files with 47 additions and 1 deletions
|
|
@ -65,6 +65,9 @@ export type Platform = {
|
|||
|
||||
/** Check if an editor app exists (desktop only) */
|
||||
checkAppExists?(appName: string): Promise<boolean>
|
||||
|
||||
/** Read image from clipboard (desktop only) */
|
||||
readClipboardImage?(): Promise<File | null>
|
||||
}
|
||||
|
||||
export const { use: usePlatform, provider: PlatformProvider } = createSimpleContext({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue