From 2f8c6b71d2787e85a677073ca41832c4b00f6c41 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Mon, 27 Mar 2023 22:05:46 +0800 Subject: [PATCH] fix: extra blank row appear when insert table #162 --- src/editor/core/command/CommandAdapt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/core/command/CommandAdapt.ts b/src/editor/core/command/CommandAdapt.ts index 7e9d33d..d62829a 100644 --- a/src/editor/core/command/CommandAdapt.ts +++ b/src/editor/core/command/CommandAdapt.ts @@ -465,7 +465,7 @@ export class CommandAdapt { } const element: IElement = { type: ElementType.TABLE, - value: ZERO, + value: !startIndex ? '' : ZERO, colgroup, trList }