Skip to content

Allow form description to be rich text / HTML#62

Merged
scottgrayson merged 1 commit into4.xfrom
description-richtext
Mar 2, 2026
Merged

Allow form description to be rich text / HTML#62
scottgrayson merged 1 commit into4.xfrom
description-richtext

Conversation

@scottgrayson
Copy link
Contributor

Summary

Enables the form Description field to store and display rich text/HTML instead of plain text.

Changes

  • FilamentFormResource: Replaced Textarea::make('description') with RichEditor::make('description') so admins can use bold, lists, links, etc.
  • show.blade.php: Render description as HTML with {!! ... !!} inside a conditional block with prose styling. Content is admin-controlled.
  • No migration; existing text column is sufficient (~64 KB).

Testing

  • Edit a form in admin, add rich text to Description, save and reopen to confirm persistence.
  • View the form's public URL and confirm description displays with formatting (paragraphs, lists) instead of smooshed plain text.
  • Existing plain-text descriptions continue to render as before.

Made with Cursor

- Replace Textarea with RichEditor for description in FilamentFormResource
- Render description as HTML in show view with {!! !!} and prose styling
- No migration; keep existing text column

Made-with: Cursor
@scottgrayson scottgrayson merged commit b056f70 into 4.x Mar 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant