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 rich table cell height consistent between preview and editing https://github.com/siyuan-note/siyuan/issues/19188
Daniele7f89a67f67d
diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scssindex a3e8cf6949..993a6f4547 100644--- a/app/src/assets/scss/protyle/_wysiwyg.scss+++ b/app/src/assets/scss/protyle/_wysiwyg.scss@@ -145,7 +145,8 @@box-shadow: 2px 0 0 0 var(--b3-protyle-inline-mark-background) inset;}- [spellcheck] {+ [spellcheck],+ [data-table-cell-content] {min-height: 1.625em;word-break: break-word;// https://github.com/siyuan-note/siyuan/issues/10483diff --git a/app/src/protyle/render/tableCellRich.ts b/app/src/protyle/render/tableCellRich.tsindex ce9e631248..47f4747c3d 100644--- a/app/src/protyle/render/tableCellRich.ts+++ b/app/src/protyle/render/tableCellRich.ts@@ -21,6 +21,9 @@ export const renderTableCellRichElements = (root: Element) => {if (node.hasAttribute("data-node-id")) {node.setAttribute("data-table-cell-node", "");}+ if (node.hasAttribute("spellcheck")) {+ node.setAttribute("data-table-cell-content", "");+ }["id", "data-node-id", "data-node-index", "updated", "spellcheck", "draggable"].forEach(attribute =>node.removeAttribute(attribute));if (node.hasAttribute("contenteditable")) {