An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Keep table block gutter visible while editing cells https://github.com/siyuan-note/siyuan/issues/19755
Danielf432a21ac957
diff --git a/app/src/protyle/render/tableCellRichEditor.ts b/app/src/protyle/render/tableCellRichEditor.tsindex 286622b911..773baf9bba 100644--- a/app/src/protyle/render/tableCellRichEditor.ts+++ b/app/src/protyle/render/tableCellRichEditor.ts@@ -105,7 +105,7 @@ export const openTableCellRichEditor = (owner: IProtyle, cell: HTMLTableCellElemshowMessage(window.siyuan.languages.tableCellRichInvalid);return;}- hideElements(["gutter", "toolbar"], owner);+ hideElements(["toolbar"], owner);// 记录预览中被点击的公式位置,在重建单元格后打开对应公式的编辑面板。const clickedMath = point?.target?.closest('[data-subtype="math"]');const clickedMathIndex = clickedMath && cell.contains(clickedMath) ?@@ -149,10 +149,8 @@ export const openTableCellRichEditor = (owner: IProtyle, cell: HTMLTableCellElemevent.preventDefault();}}));- ["mouseover", "pointerover"].forEach(type => host.addEventListener(type, event => {- hideElements(["gutter"], owner);- event.stopPropagation();- }));+ ["mouseover", "pointerover"].forEach(type => host.addEventListener(type, event => event.stopPropagation()));+ owner.gutter?.render(owner, table, cell);const toolbar = getDefaultToolbar(isMobile()).filter(item => typeof item === "string" ? item !== "ai" : item.name !== "ai");const safeSlash = registerBuiltinSlashHint((key: string, protyle: IProtyle, hintSource: THintSource) =>hintSlash(key, protyle, hintSource).filter(item => TABLE_CELL_SLASH_IDS.has(item.id)));