From d95a882d6d7315d20fce0406bbb449d9097e8391 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Mon, 9 May 2022 21:49:40 +0800 Subject: [PATCH] fix:replace zero width char when zip element --- src/editor/utils/element.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/utils/element.ts b/src/editor/utils/element.ts index e41f576..1e2e2d1 100644 --- a/src/editor/utils/element.ts +++ b/src/editor/utils/element.ts @@ -330,7 +330,8 @@ export function zipElementList(payload: IElement[]): IElement[] { nextElement && isSameElementExceptValue(pickElement, pickElementAttr(nextElement)) ) { - pickElement.value += nextElement.value + const nextValue = nextElement.value === ZERO ? '\n' : nextElement.value + pickElement.value += nextValue } else { break }