From 95b337de05df74a07d086dbec6c6c52ab95ba43a Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Thu, 4 Apr 2024 19:31:40 +0800 Subject: [PATCH] fix: format text class elements boundary error --- src/editor/utils/element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/utils/element.ts b/src/editor/utils/element.ts index 2428bf4..d29d793 100644 --- a/src/editor/utils/element.ts +++ b/src/editor/utils/element.ts @@ -358,7 +358,7 @@ export function formatElementList( } i-- } else if ( - (!el.type || el.type === ElementType.TEXT) && + (!el.type || TEXTLIKE_ELEMENT_TYPE.includes(el.type)) && el.value.length > 1 ) { elementList.splice(i, 1)