You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the color and list item extensions. When I hit a hard return on a list item, I expect the next list item to have the same styling, similar to Google Docs or many other text editors. This will work if the hard return is hit before the last character (e.g. before a trailing space) but not right at the end of the line. This is contrary to the way that paragraphs work in TipTap, where hitting a hard return at the end of the element copies over styling onto the next line too.
Which browser was this experienced in? Are any special extensions installed?
patmifsud
changed the title
Inconsistent behaviour with color and list items. Hard breaks will loose styling if executed at the end of a list item, but not in the middle.
Inconsistent behaviour with color and list items. Hard breaks will loose styling if executed at the end of a list item
Feb 21, 2023
What’s the bug you are facing?
I'm using the color and list item extensions. When I hit a hard return on a list item, I expect the next list item to have the same styling, similar to Google Docs or many other text editors. This will work if the hard return is hit before the last character (e.g. before a trailing space) but not right at the end of the line. This is contrary to the way that paragraphs work in TipTap, where hitting a hard return at the end of the element copies over styling onto the next line too.
Which browser was this experienced in? Are any special extensions installed?
Chrome, Mac. React project
How can we reproduce the bug on our side?
Here is an example with instructions to reproduce
https://codesandbox.io/s/react-tiptap-editor-richt-html-forked-r8ute1?file=/src/Tiptap/MenuBar.jsx
Can you provide a CodeSandbox?
No response
What did you expect to happen?
Color and other formatting should have consistent behaviour between list items and paragraphs, ideally copying over styling as with Google Docs
Anything to add? (optional)
I hope this is the right place to put this! I wasn't sure if this is classified as a bug, apologies if not.
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: