From 580d493f947879c263a88c8a8ad7d5ccfaca9635 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 15 May 2025 22:10:29 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14820 --- app/src/protyle/toolbar/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 016cd20fe..bed126f21 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -335,7 +335,8 @@ export class Toolbar { emptyNode = this.range.startContainer as HTMLElement; } } - if (emptyNode && emptyNode.nodeType !== 3 && emptyNode.textContent.replace(Constants.ZWSP, "") === "") { + if (emptyNode && emptyNode.nodeType !== 3 && emptyNode.textContent.replace(Constants.ZWSP, "") === "" && + !["TD", "TH"].includes(emptyNode.tagName)) { emptyNode.remove(); } }