-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Better interaction between formatting options in lists #2261
Comments
Converting list items to text blocks like paragraphs or headings should work better now with this patch. But blockquotes behave differently, since they can contain block nodes themselves. What would you expect here?
Feel free to create a new issue for the blockquotes. |
Thanks a lot for the quick fix! I'm not 100% sure which blockquote idea might be the best. Some use cases I saw:
I understand blockquote more being a wrapper around a group of content. You might have similar features in TipTap somewhere for grouping content? To avoid complexity with lists, the blockquote might be automatically get extended to the whole list element? Remembers me a bit of #166 ;) |
The behavior of blockquotes across multiple nodes is also interesting. Because a CleanShot.2021-12-13.at.14.52.49.mp4So a third option would be to wrap the entire list when trying to wrap a |
I like it the way it behaves in the video 👍 |
Just to be clear: This is how it already works now. See: CleanShot.2021-12-13.at.15.20.28.mp4The calculation of the NodeRange depth is only wrong if the same is tried within a list. But I could fix that so that it behaves the same within lists. |
I see. Indeed, that list only blockquote bug is one I experienced as well. A fix would be very welcome. Thanks! |
Haha. I was more trying to say that I don’t like to split the list 😅 It seems like a lot of work for a case that has only been reported once. |
You don't have to split the list. You showed a selection that started and ended inside the list. Click on blockquote did nothing. I consider this to instead extend the scope to the whole list ( I think it's the details that make a text editor great 😉 |
What’s the bug you are facing?
If I'm inside a bullet list, changing to "paragraph", "heading" or "blockquote" does not work.
How can we reproduce the bug on our side?
Just try it in your demo editor.
Can you provide a CodeSandbox?
No response
What did you expect to happen?
All "block level" actions should interact correctly with each other. Especially those that exclude each other like list and heading.
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: