Closed scofalik closed 2 years ago
What we found so far:
blockQuote
is treated differently than e.g. htmlSection
. Block quote is not a block, custom elements are. Should they?<div><div><div>Foo</div></div><div>
case).htmlDivParagraph
and htmlDiv
and they are different (schema-wise).schemadefinitions.js
in GHS -- can this be overwritten by integrator or maybe integrator can only choose from available options? Context: paragraphLikeModel
.Answering the most important question: it seems that htmlSection
and similar should not be blocks but containers instead.
We can start with this ticket: ckeditor/ckeditor5#12430.
The issue no longer occurs after fixing #12430.
From the questions that we asked earlier, I think that the most important is:
Not sure if we should return all elements or only the deepest one (
<div><div><div>Foo</div></div><div>
case).
I will add another issue for this.
Edit: actually, I just checked and the style is applied to deepest found element. I think this behavior makes sense, so I am not adding a new issue.
📝 Provide detailed reproduction steps (if any)
htmlSection
).✔️ Expected result
Paragraph style is applied to all paragraphs.
❌ Actual result
"Middle" paragraphs are not styled.
https://user-images.githubusercontent.com/1502228/188593456-0c60c6b6-bbea-42b9-89e7-59055be4fce8.mov