Pasting removes line breaks
alex-hladun opened this issue · comments
Alex Hladun commented
Checklist
- [ X] This is not covered in the repository examples.
- [ X] I am using the package latest version.
Description
As the title states, pasting will remove line breaks. I can copy and paste into other editors and the line breaks are preserved. I see that other draft-js based editors can provide a blockRenderMap which allows you to modify the way the text is processed, is there a way to do that with mui-rte?
Sample text, can see what I mean if you paste this in the official code sandbox:
My sample
Break
One Two
Three Four
Alex Hladun commented
Edit: Nvm, see that draftEditorProps={{
handlePastedText: () => fn }} is available