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/15614

Vanessa8a6922b56fb6
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index 5b21755e3d..808692668f 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -199,7 +199,7 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
return true;
} else if (target.classList.contains("b3-menu__avemoji") && !protyle.disabled) {
const rect = target.getBoundingClientRect();
- openEmojiPanel(target.parentElement.getAttribute("data-block-id"), "doc", {
+ openEmojiPanel(target.nextElementSibling.getAttribute("data-id"), "doc", {
x: rect.left,
y: rect.bottom,
h: rect.height,