mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
d3eae7fa3d
commit
943d8dac43
1 changed files with 3 additions and 3 deletions
|
|
@ -930,11 +930,11 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
const selectElements = protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select");
|
||||
if (selectElements.length > 0) {
|
||||
selectElements[0].setAttribute("data-reftext", "true");
|
||||
focusByRange(getEditorRange(nodeElement));
|
||||
document.execCommand("copy");
|
||||
} else {
|
||||
nodeElement.setAttribute("data-reftext", "true");
|
||||
writeText(`((${nodeElement.getAttribute("data-node-id")} "*"))`);
|
||||
}
|
||||
focusByRange(getEditorRange(nodeElement));
|
||||
document.execCommand("copy");
|
||||
}
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue