From 3f5d5be67a81d94f8dec1d7aae106d279081f19f Mon Sep 17 00:00:00 2001 From: fantasticit Date: Sun, 24 Apr 2022 20:56:39 +0800 Subject: [PATCH] fix: only copy plain text --- .../client/src/tiptap/extensions/paste.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/client/src/tiptap/extensions/paste.ts b/packages/client/src/tiptap/extensions/paste.ts index b8edc9ee..c65d01ae 100644 --- a/packages/client/src/tiptap/extensions/paste.ts +++ b/packages/client/src/tiptap/extensions/paste.ts @@ -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; + // }, }, }), ];