- 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
30 lines
692 B
PHP
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',
|
|
]));
|
|
}
|
|
}
|