mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 15:56:10 +01:00
This commit is contained in:
parent
56f8ea4ab9
commit
e72be57f11
1 changed files with 1 additions and 2 deletions
|
|
@ -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 }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue