react-draft-wysiwyg icon indicating copy to clipboard operation
react-draft-wysiwyg copied to clipboard

First space character is moving cursor at the beginning on Firefox

Open Mindiell opened this issue 3 years ago • 3 comments

Using Firefox, when typing some text. Each time I want to append a "space character", cursor is moved back at the beginning of the text. Plus if I come back at the end and type any other chaaracter, ending space is replaced by this character.

If having a space at the end of text and I place my cursor just before it, I can type anything I want, everything is working great.

Problem present only on Firefox (not Edge neither Chrome, I didn't try anything else).

Mindiell avatar Jun 02 '22 15:06 Mindiell

Had this issue reported as well.

alex-yalo avatar Oct 20 '22 17:10 alex-yalo

I am also facing same thing

abhilash-linkites avatar Jan 03 '23 09:01 abhilash-linkites

I solved this problem by replacing a white-space: nowrap by white-space: pre

nowrap remove "End-of-line spaces"

Initially I added this white-space to display the editor as a classic "one-line" input.

jeremy-carbonne avatar May 12 '23 15:05 jeremy-carbonne