Improve right-click menu paste (#15286)

* 🎨 Improve right-click menu paste

* 🎨 Improve right-click menu paste
This commit is contained in:
Jeffrey Chen 2025-07-17 16:49:46 +08:00 committed by GitHub
parent 62d560e7a8
commit 280f97ee81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 51 additions and 6 deletions

View file

@ -248,6 +248,7 @@ const readLocalFile = async (protyle: IProtyle, localFiles: string[]) => {
export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvent | {
textHTML?: string,
textPlain?: string,
siyuanHTML?: string,
files?: File[],
}) & {
target: HTMLElement
@ -275,6 +276,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
} else {
textHTML = event.textHTML;
textPlain = event.textPlain;
siyuanHTML = event.siyuanHTML;
files = event.files;
}