froala / wysiwyg-editor

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

Cursor jumps back to beginning of line using inline toolbar and ENTER_BR #4443

Open various89 opened 2 years ago

various89 commented 2 years ago

If you have a feature suggestion, please add it on the Feature List instead.

Expected behavior.

Even if the first row is blank, the cursor should not jump to the beginning of the previous line if one hits ENTER.

Actual behavior.

If the very first row is blank, i.e. hit ENTER once. Type 'test' in the second row and hit ENTER, the cursor jumps back to the beginning of the second row, i.e. before 'test'.

Steps to reproduce the problem.

The problem occurs while using toolbarInline: true in combination with enter: FroalaEditor.ENTER_BR

https://jsfiddle.net/h60au9qc/

Editor version.

4.0.10

OS.

Arch 5.17.3-arch1-1

Browser.

Chromium: 100.0.4896.60 (Official Build) (64-bit)

Recording.

https://user-images.githubusercontent.com/1713375/165534605-2bc9c1f4-e6ec-4c2b-8175-46e063b1f779.mp4

julien-mamalian commented 2 years ago

Hi, We have the same issue on our side.

mountiny commented 2 years ago

Also experiencing this issue.

huylethanh commented 3 months ago

I also get it, please fix it or something to work around it