wysiwyg-editor icon indicating copy to clipboard operation
wysiwyg-editor copied to clipboard

Froala 4.2.1: Cursor jumping twice before going back to the previous row on IOS Emulator (Chrome)

Open ubalensi-yoobic opened this issue 5 months ago • 0 comments

Expected behavior.

When using the editor from Chrome (emulator) using an IOS based frame such as (Iphone 12 Pro or iPhone 14 Prop Max) and keypressing on "Enter", the cursor should go to the next line without jumping

Actual behavior.

When using the editor from Chrome (emulator) using an IOS based frame such as (Iphone 12 Pro or iPhone 14 Prop Max) and keypressing on "Enter", the cursor goes to the line+2 first and come back on the next line a few second after

Steps to reproduce the problem.

Go to chrome (latest version is reproducible), open the debugger tools and set the display mode to emulate ( select any IOS based frame) then start typing a value ( or leave it empty ) and press the "Enter" key, look that the cursor jumps.

Editor version.

4.2.1

OS.

macOS 14.1.1 (23B81)

Browser.

Google Chrome (Version 128.0.6613.86 (Official Build) (arm64))

Recording.

https://github.com/user-attachments/assets/cb6f6063-80bf-4977-adf5-1d4d6b33ceaf

As a side note when debugging, i have noticed that when pressing "Enter", 2 new nodes got appended instead of one the very first time and then it ends with only 1 node after a few miliseconds. ( the issue remains the same whatever we set the enter option to div or p or br

https://github.com/user-attachments/assets/862435cc-8cc9-435e-b7ff-3d998d69251a

ubalensi-yoobic avatar Aug 30 '24 14:08 ubalensi-yoobic