We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3eed75 commit f343302Copy full SHA for f343302
src/components/editor/plugins/withPasted.ts
@@ -89,7 +89,12 @@ export const withPasted = (editor: ReactEditor) => {
89
if(html) {
90
return insertHtmlData(editor, data);
91
} else {
92
- const fragment = lines.map((line) => ({ type: BlockType.Paragraph, children: [{ text: line }] }));
+ const fragment = lines.map((line) => ({
93
+ type: BlockType.Paragraph, children: [{
94
+ type: 'text',
95
+ children: [{ text: line }],
96
+ }],
97
+ }));
98
99
insertFragment(editor, fragment);
100
return true;
0 commit comments