react-native-rich-editor icon indicating copy to clipboard operation
react-native-rich-editor copied to clipboard

How to change the 'Enter' key behavior (from 2 lines to 1)?

Open polcats opened this issue 4 years ago • 3 comments

It seems to add 2 lines, I only want it to produce a single new line.

polcats avatar Dec 17 '20 08:12 polcats

The test did not show the situation you said, whether there is a custom style affected.

stulip avatar Dec 17 '20 08:12 stulip

What I meant is that there's an actual extra line that's being added when pressing the Enter of the mobile keyboard nIWidsny1B

Edit: I have tried setting defaultParagraphSeparator to blank "" but it seems to have an underlying <div></div> wrapper

polcats avatar Dec 17 '20 08:12 polcats

Can you run the example project in the library to see if the same exists

stulip avatar Dec 17 '20 09:12 stulip