Back
RichTextEditor
Rich Text Editor
TipTap-powered editor with a minimal toolbar. The hidden input stays in sync for form submission.
Use the toolbar to format your content.
Form Integration
Set Name to wire the hidden input for standard form submission.
Submit to see echoed HTML…
Usage
@forms.RichTextEditor(forms.RichTextEditorProps{
Label: "Content", // optional label
Name: "body", // hidden input name for form submission
Value: "<p>Hello</p>", // initial HTML content
MinHeight: "200px", // min-height of the edit area
Hint: "Max 5000 chars.", // optional helper text
})