From 71cf05c8204b077f0bdd4a7cb3203ac42cd839d6 Mon Sep 17 00:00:00 2001 From: codytseng Date: Wed, 13 Aug 2025 23:00:59 +0800 Subject: [PATCH] feat: add clipboard text serializer to parse editor content --- src/components/PostEditor/PostTextarea/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/PostEditor/PostTextarea/index.tsx b/src/components/PostEditor/PostTextarea/index.tsx index 2f60f78..22a41f2 100644 --- a/src/components/PostEditor/PostTextarea/index.tsx +++ b/src/components/PostEditor/PostTextarea/index.tsx @@ -89,6 +89,9 @@ const PostTextarea = forwardRef< return true } return false + }, + clipboardTextSerializer(content) { + return parseEditorJsonToText(content.toJSON()) } }, content: postEditorCache.getPostContentCache({ defaultContent, parentEvent }),