feat: add clipboard text serializer to parse editor content

This commit is contained in:
codytseng
2025-08-13 23:00:59 +08:00
parent 836005aaff
commit 71cf05c820

View File

@@ -89,6 +89,9 @@ const PostTextarea = forwardRef<
return true
}
return false
},
clipboardTextSerializer(content) {
return parseEditorJsonToText(content.toJSON())
}
},
content: postEditorCache.getPostContentCache({ defaultContent, parentEvent }),