From 00e0e268bee56efda5a4a11248b5c8bae7722372 Mon Sep 17 00:00:00 2001 From: Jeff Larsen Date: Tue, 20 Aug 2024 17:40:35 -0400 Subject: [PATCH] Fix schema definitions of hgroup and summary --- .../src/schemadefinitions.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/packages/ckeditor5-html-support/src/schemadefinitions.ts b/packages/ckeditor5-html-support/src/schemadefinitions.ts index b84884ac726..30b4b05aff4 100644 --- a/packages/ckeditor5-html-support/src/schemadefinitions.ts +++ b/packages/ckeditor5-html-support/src/schemadefinitions.ts @@ -279,9 +279,17 @@ export default { model: 'htmlSummary', view: 'summary', modelSchema: { - allowChildren: '$text', + allowChildren: [ + 'htmlH1', + 'htmlH2', + 'htmlH3', + 'htmlH4', + 'htmlH5', + '$text' + ], allowIn: 'htmlDetails', - isBlock: false + isBlock: false, + isLimit: true } }, { @@ -342,6 +350,8 @@ export default { view: 'hgroup', modelSchema: { allowChildren: [ + 'paragraph', + 'htmlP', 'htmlH1', 'htmlH2', 'htmlH3', @@ -349,7 +359,8 @@ export default { 'htmlH5', 'htmlH6' ], - isBlock: false + isBlock: false, + allowIn: "$root" } }, {