From d8a5ce305e98ed5aa181efd1cd920987a62fa000 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 4 Mar 2025 22:33:38 -0500 Subject: [PATCH] fix: First item in list must be a paragraph closes #8611 closes #8216 --- shared/editor/nodes/CheckboxItem.ts | 2 +- shared/editor/nodes/ListItem.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/editor/nodes/CheckboxItem.ts b/shared/editor/nodes/CheckboxItem.ts index 12fb5c993d..24e77451ab 100644 --- a/shared/editor/nodes/CheckboxItem.ts +++ b/shared/editor/nodes/CheckboxItem.ts @@ -22,7 +22,7 @@ export default class CheckboxItem extends Node { default: false, }, }, - content: "paragraph block*", + content: "block+", defining: true, draggable: true, parseDOM: [ diff --git a/shared/editor/nodes/ListItem.ts b/shared/editor/nodes/ListItem.ts index 28e390d3ac..e9b30b84cb 100644 --- a/shared/editor/nodes/ListItem.ts +++ b/shared/editor/nodes/ListItem.ts @@ -26,7 +26,7 @@ export default class ListItem extends Node { get schema(): NodeSpec { return { - content: "paragraph block*", + content: "block+", defining: true, draggable: true, parseDOM: [{ tag: "li" }],