An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Remove the `colspan` and `rowspan` attributes from cell elements after splitting cells https://github.com/siyuan-note/siyuan/issues/17050#issue-3943488883 (#17094)
Jeffrey Chen96afa13bfef4
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.tsindex 23eb268329..ef9afa3e9e 100644--- a/app/src/menus/protyle.ts+++ b/app/src/menus/protyle.ts@@ -2154,16 +2154,16 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:let colSpan = orgColSpan;while (colSpan > 0 && currentCellElement) {currentCellElement.classList.remove("fn__none");- currentCellElement.colSpan = 1;- currentCellElement.rowSpan = 1;+ currentCellElement.removeAttribute("colspan");+ currentCellElement.removeAttribute("rowspan");currentCellElement = currentCellElement.nextElementSibling as HTMLTableCellElement;colSpan--;}currentRowElement = currentRowElement.nextElementSibling;rowSpan--;}- cellElement.rowSpan = 1;- cellElement.colSpan = 1;+ cellElement.removeAttribute("colspan");+ cellElement.removeAttribute("rowspan");if (cellElement.tagName === "TH") {let prueTrElement: HTMLElement;Array.from(nodeElement.querySelectorAll("thead tr")).find((item: HTMLElement) => {