froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.28k stars 672 forks source link

Deleting last character on a line makes cursor jump to previous line #4064

Closed felskov closed 1 year ago

felskov commented 3 years ago
Expected behavior.

When deleting the last character on a line, the cursor remains on that line.

Actual behavior.

When deleting the last character on a line, the line is removed and cursor jumps up to the end of the previous line.

Steps to reproduce the problem.
  1. Initialize the editor with enter set to ENTER_BR option
  2. Delete the last character on a line

The issue can be reproduced by deleting the characters on the last line in this fiddle:

https://jsfiddle.net/aytqsodw/

Editor version.

3.2.2

OS.

MacOS 10.15.6

Browser.

Chrome 85.0.4183.121 (Official Build) (64-bit)

arthurfanti commented 3 years ago

Having the same issue here, @felskov Did you find any solution?

felskov commented 3 years ago

No unfortunately not. We're still waiting for an official fix.

luizeboli commented 3 years ago

Same issue here, thinking in a solution...

dcsaszar commented 2 years ago

FYI I tried the fiddle https://jsfiddle.net/aytqsodw/ on the latest MacOs+Chrome and can't reproduce the cursor line jump. The issue I see is that the cursor jumps to the left of the space before the deleted character, and on the second backspace nothing happens.

With 4.0.7, it works for me.

ilyaskarim commented 1 year ago

Fixed in V4.0.15 https://froala.com/wysiwyg-editor/changelog/#4.0.15