Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14907

Vanessa27f037068fc1
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 739051cd9a..c3d4252e6d 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(" ");