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;
|
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;
|
||||||
},
|
// },
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue