Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hgroup and summary should work with source editing #16962

Merged
merged 5 commits into from
Aug 26, 2024
Merged

hgroup and summary should work with source editing #16962

merged 5 commits into from
Aug 26, 2024

Conversation

illia-stv
Copy link
Contributor

Suggested merge commit message (convention)

Fix (html-support): hgroup and summary elements should work with source editing. Closes #16947 .


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

allowIn: 'htmlDetails',
isLimit: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this added?

Copy link
Contributor Author

@illia-stv illia-stv Aug 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, this is could be redundant, I was followed the community PR here

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it because I found that, without it, CK would remove the summary element if it contained a heading. If it works without it, great.

@@ -341,7 +349,10 @@ export default {
model: 'htmlHgroup',
view: 'hgroup',
modelSchema: {
allowIn: '$root',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why $root and not $container? hgroup can go anywhere

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be safe to use $container here.

@illia-stv illia-stv requested a review from niegowski August 26, 2024 09:18
@illia-stv illia-stv merged commit e691409 into master Aug 26, 2024
8 checks passed
@illia-stv illia-stv deleted the ck/16947 branch August 26, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hgroup and summary do not accept heading elements
3 participants