Vanessa 2024-12-03 23:56:49 +08:00
parent 07334bed6a
commit e8d3eec13c

View file

@ -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");
}
}