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)