Content creation forms typically show only raw text from rich text or markdown editors, but Filament actions with custom views enable real-time formatted content preview directly within the form interface.
To create this action, we first have to create our Fields:
app/Filament/Resources/Posts/Schemas/PostForm.php
// ...RichEditor::make('rich_content') ->required() ->columnSpanFull(),Textarea::make('markdown_content') ->required() ->columnSpanFull(),// ...
Currently, they do nothing but store the content. From here, we want to add a new action with slideOver
to our form: