fix: only copy plain text

This commit is contained in:
fantasticit
2022-04-24 20:56:39 +08:00
parent 98ba8ce098
commit 3f5d5be67a
+10 -10
View File
@@ -115,19 +115,19 @@ export const Paste = Extension.create({
return false;
},
clipboardTextSerializer: (slice) => {
const doc = slice.content;
// clipboardTextSerializer: (slice) => {
// const doc = slice.content;
if (!doc) {
return '';
}
// if (!doc) {
// return '';
// }
const content = prosemirrorToMarkdown({
content: doc,
});
// const content = prosemirrorToMarkdown({
// content: doc,
// });
return content;
},
// return content;
// },
},
}),
];