Error in Rich Text Editor

Hello!

I am using Rich Text Editor with Vaadin 15.0.2 and Vaadin 14.1.20.

There is a problem with Safari, with Chrome there are no problems.

Of course I tried this with your sample: https://demo.vaadin.com/invoice-editor-app/

It is not working, too.

Here is the problem:

In your sample I am selecting the text “hotel” and pressing the bold button. Under Safari the caret jumps to the beginning of the text when pressing the bold button. Under Chrome “hotel” is marked bold - ok.

There may be a problem with “window.getSelection” under Safari.

System is mac.png.

Thank you very much for your help,
Thomas

18165352.png
18165355.png

Hi,

and thanks for the report. Can you create a ticket in https://github.com/vaadin/vaadin-rich-text-editor/issues so this issue doesn’t get lost in the Forum?

-Olli