mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 04:40:15 +01:00
This commit is contained in:
parent
07334bed6a
commit
e8d3eec13c
1 changed files with 3 additions and 0 deletions
|
|
@ -509,6 +509,9 @@ const editKeydown = (app: App, event: KeyboardEvent) => {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const ids = Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select")).map(item => item.getAttribute("data-node-id"));
|
const ids = Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select")).map(item => item.getAttribute("data-node-id"));
|
||||||
|
if (ids.length === 0) {
|
||||||
|
ids.push(nodeElement.getAttribute("data-node-id"))
|
||||||
|
}
|
||||||
copyTextByType(ids, "ref");
|
copyTextByType(ids, "ref");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue