mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
2289b44f0c
commit
ce31cca404
1 changed files with 5 additions and 3 deletions
|
|
@ -94,10 +94,12 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
||||||
Array.from(xmlDom.getElementsByTagName("string")).forEach(item => {
|
Array.from(xmlDom.getElementsByTagName("string")).forEach(item => {
|
||||||
localFiles.push(item.childNodes[0].nodeValue);
|
localFiles.push(item.childNodes[0].nodeValue);
|
||||||
});
|
});
|
||||||
uploadLocalFiles(localFiles, protyle);
|
if (localFiles.length > 0) {
|
||||||
writeText("");
|
uploadLocalFiles(localFiles, protyle);
|
||||||
|
writeText("");
|
||||||
|
return;
|
||||||
|
}
|
||||||
/// #endif
|
/// #endif
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
const xmlString = await fetchSyncPost("/api/clipboard/readFilePaths", {});
|
const xmlString = await fetchSyncPost("/api/clipboard/readFilePaths", {});
|
||||||
if (xmlString.data.length > 0) {
|
if (xmlString.data.length > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue