react-quill icon indicating copy to clipboard operation
react-quill copied to clipboard

can't clear all <p>br<p>

Open webnoble opened this issue 2 years ago • 7 comments

Select All and delete will leave

br

webnoble avatar Jan 15 '23 08:01 webnoble

I would also like to ask how to solve this problem

windguos avatar Feb 06 '23 08:02 windguos

Have you Example? Screenshot?

5tausend avatar Feb 13 '23 12:02 5tausend

Select All and delete will leave

br

Everyone who came here knows this is the problem. what is the solution?

abhinav1602 avatar Feb 15 '23 09:02 abhinav1602

Unfortunately, there was no screenshot until now, so I would like to propose a solution that I use.The following example works very well for us. It's probably not the most elegant solution, but it solves the 'br' bug.

<QuillTextEditor theme="snow" placeholder={'STRING'} value={value.replace(/�/g, '<br>')} onChange={(event) =>...} />

5tausend avatar Mar 01 '23 12:03 5tausend

i have this issue to and have some picture for you on this picture I selected a empty lines contains <p><br></p> and i cant delete it with Backspace button Screenshot 2024-02-08 at 13 48 49

DanyloStr avatar Feb 08 '24 11:02 DanyloStr