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

Marking a line with shift "pos1 or end" and pressing del removes too much and destroys structure #1038

Closed
Orgoth opened this issue Nov 21, 2023 · 1 comment
Labels

Comments

@Orgoth
Copy link

Orgoth commented Nov 21, 2023

Jodit Version: 3.4.xxxxx

Browser: Chrome
OS: Kubuntu 22.04 LTS
Is React App: False

Code
https://xdsoft.net/jodit/play.html

Expected behavior:
The line should only be emptied, not completely removed and the HTML getting changed/merged.

Actual behavior:

  1. line gets completely removed
  2. the line above and below are getting merged, and the original structure is getting deleted

Reproduse:

  1. open https://xdsoft.net/jodit/play.html
  2. paste a lorem ipsum text
  3. at the end of every sentence, hit enter/return for a new line
  4. give "At vero eos et accusam et justo duo dolores et ea rebum." a style "indent or list, it does not really matter"
  5. mark the line above and hit del or back
  6. the marked line gets removed and the line above and below are getting merged

Do the same in Thunderbird, Word or any other editor like ckeditor.
The line will always only get emptied, instead of getting completely removed and the lines above and below merged.

Auswahl_621

Auswahl_622

Auswahl_623

Auswahl_624

Auswahl_625

@xdan xdan added the bug label Dec 12, 2023
xdan added a commit that referenced this issue Dec 12, 2023
@Orgoth
Copy link
Author

Orgoth commented Dec 15, 2023

@xdan Thank you very much, the fix is working as expected.

I wish you happy holidays and Christmas, if you celebrate it.
Otherwise, have a great December.

@Orgoth Orgoth closed this as completed Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants