Skip to content

Commit

Permalink
🐛 #13361
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Dec 3, 2024
1 parent 07334be commit e8d3eec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/boot/globalEvent/keydown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ const editKeydown = (app: App, event: KeyboardEvent) => {
});
} else {
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");
}
}
Expand Down

0 comments on commit e8d3eec

Please sign in to comment.