Vanessa 2025-05-26 21:49:21 +08:00
parent a25b453a4e
commit 27f037068f

View file

@ -2033,6 +2033,7 @@ export class WYSIWYG {
}
// 链接备注样式引用pdf标注粘贴 https://github.com/siyuan-note/siyuan/issues/11572
const range = getSelection().getRangeAt(0);
protyle.toolbar.range = range;
const inlineElement = range.startContainer.parentElement;
if (range.toString() === "" && inlineElement.tagName === "SPAN") {
const currentTypes = (inlineElement.getAttribute("data-type") || "").split(" ");