mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
🎨 没有选中文本粘贴链接不应选中整个链接
This commit is contained in:
parent
1bafc3bb4f
commit
2aeaecf78c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue