draftjs-to-html icon indicating copy to clipboard operation
draftjs-to-html copied to clipboard

Adding a new line in the editor

Open punit-kulal opened this issue 4 years ago • 5 comments

When adding a new line into the editor, it adds an empty <p></p> tag instead of <br/> tag is this expected behaviour.. If so why??

punit-kulal avatar May 20 '20 13:05 punit-kulal

@jpuri you can try doing the same here.Demo After digging up the code a bit, I found that draft js adds an empty text block instead of \n thus, causing the conversion to perform incorrectly. Can I put up a pull request to resolve the same.

punit-kulal avatar May 20 '20 14:05 punit-kulal

Hi @punit-kulal, I think you wanted to mention @jpuri? She's the owner of this repo :wink:

jfpimentel avatar May 20 '20 18:05 jfpimentel

Hi @punit-kulal, I think you wanted to mention @jpuri? She's the owner of this repo

my bad

punit-kulal avatar May 20 '20 19:05 punit-kulal

Any updates?

ghost avatar Oct 01 '20 21:10 ghost

The repository is inactive, not being maintained anymore. You can use my fork of the repository. If you want to

Any updates?

punit-kulal avatar Oct 02 '20 04:10 punit-kulal