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

Single linebreaks does not work.

Open Archakov06 opened this issue 6 years ago • 2 comments

image

Please tell me why when inserting a single line break, it is not displayed in the editor?

I want to make it so that if I pressed Enter or Shift + Enter, a single line break would be inserted.

<RichTextEditor
  value={editorState}
  onChange={handleChange}
  handleReturn={event => {
      event.getModifierState = _ => {
          return true;
      };
  }}
/>

Archakov06 avatar Jun 23 '19 12:06 Archakov06

Your solution worked fine for me. I just copied and pasted

murilozilli avatar Jul 30 '21 09:07 murilozilli

issue with this is that it makes the bullet points to stop working properly

murilozilli avatar Sep 01 '21 04:09 murilozilli