From 7cc2afe973a28651cb6a68886978f58a8f7768d1 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 6 Jul 2025 14:15:45 +0400 Subject: [PATCH] refac: rich text input --- src/lib/components/common/RichTextInput.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/common/RichTextInput.svelte b/src/lib/components/common/RichTextInput.svelte index d8349bb3ee..8aec839ed2 100644 --- a/src/lib/components/common/RichTextInput.svelte +++ b/src/lib/components/common/RichTextInput.svelte @@ -136,7 +136,7 @@ const nodes = lines.map( (line, index) => index === 0 - ? state.schema.text(line) // First line is plain text + ? state.schema.text(line ? line : []) // First line is plain text : state.schema.nodes.paragraph.create({}, line ? state.schema.text(line) : undefined) // Subsequent lines are paragraphs );