Files
fotospiel-app/app/Filament/Blog/Traits/HasContentEditor.php
Codex Agent fa33e7cbcf Fix Event & EventType resource issues and apply formatting
- Fix EventType deletion error handling (constraint violations)
- Fix Event update error (package_id column missing)
- Fix Event Type dropdown options (JSON display issue)
- Fix EventPackagesRelationManager query error
- Add missing translations for deletion errors
- Apply Pint formatting
2026-01-21 10:34:06 +01:00

30 lines
692 B
PHP

<?php
namespace App\Filament\Blog\Traits;
use Filament\Forms\Components\MarkdownEditor;
trait HasContentEditor
{
public static function getContentEditor(string $field)
{
return MarkdownEditor::make($field)
->label('Inhalt')
->columnSpanFull()
->toolbarButtons(config('filament-blog.toolbar_buttons', [
'bold',
'italic',
'underline',
'strike',
'bulletList',
'orderedList',
'link',
'table',
'codeBlock',
'h1',
'h2',
'h3',
]));
}
}