diff --git a/src/editor/utils/element.ts b/src/editor/utils/element.ts index a6e2789..e766a7d 100644 --- a/src/editor/utils/element.ts +++ b/src/editor/utils/element.ts @@ -451,7 +451,7 @@ export function formatElementList( } el = elementList[i] } - if (el.value === '\n') { + if (el.value === '\n' || el.value == '\r\n') { el.value = ZERO } if (el.type === ElementType.IMAGE || el.type === ElementType.BLOCK) {