mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -94,10 +94,12 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
||||
Array.from(xmlDom.getElementsByTagName("string")).forEach(item => {
|
||||
localFiles.push(item.childNodes[0].nodeValue);
|
||||
});
|
||||
uploadLocalFiles(localFiles, protyle);
|
||||
writeText("");
|
||||
if (localFiles.length > 0) {
|
||||
uploadLocalFiles(localFiles, protyle);
|
||||
writeText("");
|
||||
return;
|
||||
}
|
||||
/// #endif
|
||||
return;
|
||||
} else {
|
||||
const xmlString = await fetchSyncPost("/api/clipboard/readFilePaths", {});
|
||||
if (xmlString.data.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user