niuware / mui-rte

Material-UI Rich Text Editor and Viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pasting removes line breaks

alex-hladun opened this issue · comments

Checklist

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

Edit: Nvm, see that draftEditorProps={{
handlePastedText: () => fn }} is available