Vanessa 2025-07-17 17:26:58 +08:00
parent 280f97ee81
commit 0d3dec71f3
4 changed files with 38 additions and 49 deletions

View file

@ -245,12 +245,7 @@ const readLocalFile = async (protyle: IProtyle, localFiles: string[]) => {
uploadLocalFiles(localFiles, protyle, true);
};
export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvent | {
textHTML?: string,
textPlain?: string,
siyuanHTML?: string,
files?: File[],
}) & {
export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvent | IClipboardData) & {
target: HTMLElement
}) => {
if ("clipboardData" in event || "dataTransfer" in event) {