🎨 没有选中文本粘贴链接不应选中整个链接

This commit is contained in:
Vanessa 2025-05-17 11:00:26 +08:00
parent 1bafc3bb4f
commit 2aeaecf78c

View file

@ -546,7 +546,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
if (linkElement) {
protyle.toolbar.setInlineMark(protyle, "a", "range", {
type: "a",
color: `${linkElement.getAttribute("href")}${Constants.ZWSP}${range.toString() || linkElement.textContent}`
color: `${linkElement.getAttribute("href")}${Constants.ZWSP}${range.toString()}`
});
return;
}