Vanessa 2025-01-07 10:14:14 +08:00
parent 56f8ea4ab9
commit e72be57f11

View file

@ -166,7 +166,7 @@ export const pasteAsPlainText = async (protyle: IProtyle) => {
}
if (localFiles.length > 0) {
uploadLocalFiles(localFiles, protyle, false);
writeText("");
return;
}
/// #endif
if (localFiles.length === 0) {
@ -272,7 +272,6 @@ const readLocalFile = async (protyle: IProtyle, localFiles: string[]) => {
}
}
uploadLocalFiles(localFiles, protyle, true);
writeText("");
};
export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvent) & { target: HTMLElement }) => {