froala / wysiwyg-editor

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

Text erroneously deleted when using editor on iPhone with ENTER_BR option set #4757

Open burtonrhodes opened 2 months ago

burtonrhodes commented 2 months ago
Expected behavior.

Pressing enter within the editor when using ENTER_BR should create a new line in iOS Safari

Actual behavior.

When pressing enter (twice) in iPhone browsers (tested in Safari and Chrome) when using Froala option "enter: ENTER_BR", the text below is deleted.

Steps to reproduce the problem.
  1. Must be on iPhone (or iPhone simulator) using Safari or Chrome
  2. Place cursor on empty line with text below Type any text (e.g. "Test") and press ENTER twice
  3. The text below is deleted
Editor version.

Froala v4.1.4

OS.

iOS 17.4 (also was happening on previous versions)

Browser.

Bug reproducible on iOS Safari and iOS Chrome

Recording.

https://www.loom.com/share/81c8a12d88cd46d3861ec043035aa620?sid=fdf2f906-129b-498d-80ee-4017d1b84323

jsFiddle.

https://jsfiddle.net/burtonrhodes/6zqeLrcs/

Embedded jsFiddle (to test with iPhone or iPhone simulator)

https://www.aframesoftware.com/froala_test/

RevaJS commented 1 month ago

This has been happening to me for almost 2 years now. It would be wonderful to actually be able to use this feature!

MorganKing23 commented 3 weeks ago

Yes, I would love for this to be fixed so we can easily write emails from our phones!