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

List v2: splitting/merging #39519

Closed
ellatrix opened this issue Mar 16, 2022 · 5 comments
Closed

List v2: splitting/merging #39519

ellatrix opened this issue Mar 16, 2022 · 5 comments
Assignees
Labels
[Block] List Affects the List Block

Comments

@ellatrix
Copy link
Member

ellatrix commented Mar 16, 2022

It should be possible to split list items (use RichText's onSplit).
When splitting an empty list item, the list as a whole should split.

It should also be possible to merge list items (use RichText's onMerge and and merge in the block type).
It should be possible to merge a paragraph into a list, but this could be done separately as it will require #39520.

@ellatrix
Copy link
Member Author

This is done. Created #39877 to refine.

@ntsekouras
Copy link
Contributor

This still needs to handle merge on blocks with innerBlocks that involve RichText API. It's not working as expected right now for example if you press Enter on a list item with innerBlocks.

@ellatrix
Copy link
Member Author

It seems to work? Let's create new issues for polish it.

@ellatrix
Copy link
Member Author

Opened #42499.

@htmgarcia
Copy link

This still needs to handle merge on blocks with innerBlocks that involve RichText API. It's not working as expected right now for example if you press Enter on a list item with innerBlocks.

@ntsekouras I'm curious if there are any docs explaining how to add this behavior to innerBlocks: insert a new block when pressing enter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] List Affects the List Block
Projects
None yet
Development

No branches or pull requests

4 participants