-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Pasting text into a list can erase the list #8683
Comments
Hi @neongreen, thank you for the report. I can confirm this issue. Current list implementation in CKEditor5 is not allowing block elements inside list items. You can read more about this here.
This behaviour is related to the selection of copied text. If you copy only text inside single block then it is added as another list item, but if you select some container of this text as well then it will be pasted as block element, which is currently not possible and breaks the lists. Similar behaviour can be also reproduce inside the editor: |
Sure, I know this. However, CKEditor could still be smarter about detecting whether the pasted text is a single paragraph. |
I wonder if this is somehow related to #8684. |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
Still happens with document lists in v40. |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
The list remains
❌ Actual result
The list is replaced by pasted text
📃 Other details
This sometimes happens even when the copied text is a single paragraph and not two paragraphs — e.g. if I type a single line of text in Telegram for macOS, copy it, and paste into CKEditor.
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: