feat: implement createNews API and integrate with content creation flow

This commit is contained in:
Ardeman
2025-03-06 05:46:25 +08:00
parent 894698c5d6
commit 414806734d
4 changed files with 61 additions and 18 deletions
+1
View File
@@ -84,6 +84,7 @@ export const TextEditor = <TFormValues extends Record<string, unknown>>(
types: ['heading', 'paragraph'],
}),
],
immediatelyRender: false,
content: watchContent,
onUpdate: ({ editor }) => {
setValue(name, editor.getHTML() as any) // eslint-disable-line @typescript-eslint/no-explicit-any