fix: only copy plain text

This commit is contained in:
fantasticit 2022-04-24 20:56:39 +08:00
parent 98ba8ce098
commit 3f5d5be67a
1 changed files with 10 additions and 10 deletions

View File

@ -115,19 +115,19 @@ export const Paste = Extension.create({
return false; return false;
}, },
clipboardTextSerializer: (slice) => { // clipboardTextSerializer: (slice) => {
const doc = slice.content; // const doc = slice.content;
if (!doc) { // if (!doc) {
return ''; // return '';
} // }
const content = prosemirrorToMarkdown({ // const content = prosemirrorToMarkdown({
content: doc, // content: doc,
}); // });
return content; // return content;
}, // },
}, },
}), }),
]; ];