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

Shift-Tab (liftListItem) results in prosemirror invalid content error. #1338

Open
iskaktoltay opened this issue Dec 20, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@iskaktoltay
Copy link

Describe the bug
I have created a few paragraphs with nested children that look like this:
image
Trying to shift tab on any second level nested child (test or test 3), except for the last one results in an invalid content error being thrown.
image

To Reproduce

  1. Create a block.
  2. Create a few nested child blocks (more than one).
  3. Add another nested child block to all the child blocks created in step 2.
  4. Click Shift + Tab on any second level nested block.

Misc
Used the demo editor on your website.

Possible reason
I believe the issue is with Tiptap's liftListItem command trying to insert the following child nodes into the content of blockContainer, while blockContainter can only have one content node and one blockGroup as its' children in your schema.

@iskaktoltay iskaktoltay added the bug Something isn't working label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant