From 27f037068fc16cf433183b737c3cbfe61146e977 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 26 May 2025 21:49:21 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14907 --- app/src/protyle/wysiwyg/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 739051cd9..c3d4252e6 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -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(" ");