-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
List Block: fix merging with indented list items #17845
Conversation
Thanks! This fixes it for me when using Backspace from the second List, but not when using Delete from the first one. At least on Safari, macOS. |
@mcsf Oops, forgot that there are two |
Introduced in #14640, which I don't think was included in WP 5.2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix! Works well for me.
Where do you see __unstableMultilineWrapperTags
going in the future? Do we need a follow-up issue to revise? I ask only because it's introducing a hidden interface, but as far as the fix goes it looks good to merge.
@mcsf I see it as something special that is only needed for nested lists and shouldn't be needed for other blocks. In addition, I think we'd like to revise the list block in the future to use nested block and one rich text instance per item.
|
Thanks for the review! |
To be honest, I wish we had done the same for |
No, I think it's better to keep the prefix! |
* List Block: fix merging with indented list items * Fix forward merge
Description
Fixes #17843. The problem is that
create
is missing themultilineWrapperTags
argument when using it with an (indented) list. This needs to be provided in the attribute definition. Since lists are kind of a strange case, I've added the key as unstable. Ideally, in the future, we use blocks for each list item.How has this been tested?
See #17843 and the e2e test case I've added.
Screenshots
Types of changes
Bug fix.
Checklist: