From 22ffd923d3433209a2b3c4ae68504e9ed91cb1ef Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 16 Sep 2024 10:30:20 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=B8=85=E9=99=A4=E8=A1=8C=E7=BA=A7?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E4=BC=9A=E6=8A=8A=E5=86=85=E5=AE=B9=E4=B9=9F?= =?UTF-8?q?=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/toolbar/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 54c54e56b..c115756bc 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -600,7 +600,7 @@ export class Toolbar { for (let i = 0; i < newNodes.length; i++) { const currentNewNode = newNodes[i] as HTMLElement; const nextNewNode = newNodes[i + 1] as HTMLElement; - const currentType = currentNewNode.getAttribute("data-type") || ""; + const currentType = currentNewNode.nodeType !== 3 ? (currentNewNode.getAttribute("data-type") || "") : ""; if (currentNewNode.nodeType !== 3 && nextNewNode && nextNewNode.nodeType !== 3 && nextNewNode.tagName === currentNewNode.tagName && // 表格内多个换行 https://github.com/siyuan-note/siyuan/issues/12300