feat: replace textarea with rich text editor for form descriptions and add metadata support with HTML rendering

This commit is contained in:
2026-06-29 19:13:37 +07:00 Unverified
parent 45ceae5c6e
commit 3b004e393c
5 changed files with 54 additions and 15 deletions
+3 -4
View File
@@ -309,12 +309,11 @@ export default function FormEditorClient({ form, initialQuestions }: FormEditorC
</div>
<div className="space-y-2">
<Label htmlFor="form-description">Description</Label>
<Textarea
id="form-description"
<RichTextEditor
value={formDescription}
onChange={(e) => handleFormDescriptionChange(e.target.value)}
onChange={(html) => handleFormDescriptionChange(html)}
placeholder="Provide a description..."
className="min-h-20"
className="min-h-20 w-full"
/>
</div>
<div className="flex items-center space-x-2 pt-2">