mirror of https://github.com/fantasticit/think.git
fix: only copy plain text
This commit is contained in:
parent
98ba8ce098
commit
3f5d5be67a
|
@ -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;
|
||||
// },
|
||||
},
|
||||
}),
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue