-
-
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
Removing empty paragraph is merging and is bad UX #4434
Comments
I think this is a DUP of https://github.com/ckeditor/ckeditor5-typing/issues/146. |
I don't think so. This is a different scenario. The linked issue discusses which element should be merged into which. This issue discusses whether merge or remove should be used. |
But you wrote this:
It looks like a bug because of https://github.com/ckeditor/ckeditor5-typing/issues/146. The used operation is a secondary thing here. |
These two issues are not connected. We don't want to merge in this scenario. When you press Delete in an empty paragraph, or Backspace in a header below an empty paragraph, you don't think about merging. You think about removing that blank space above your content. Merge direction is not important here cause we don't want to merge to happen anyway. Thus, the used operation is not a secondary thing. |
From the top of my head, a solution could be implemented in |
We talked F2F and we kinda agree that:
|
Issue #6680 is addressing this (and is aware of OT and "right merge"). |
As you can see, there is an empty paragraph, and then there is a heading below it. Then, a user removes the empty paragraph. But under the hood, this is realized as a merge. So the heading is merged into an empty paragraph and the header becomes a paragraph.
AFAIR, I requested this "action" to be a merge because of collaboration :D. So when one user types in an empty paragraph and the other clicks Backspace in it, the text that was written by the first user is not deleted.
However, outside of a collaboration, it looks really bad. We should do something about it. It looks like a bug.
The text was updated successfully, but these errors were encountered: