webseite funktioniert, pay sdk, blog backend funktioniert
This commit is contained in:
29
app/Filament/Blog/Traits/HasContentEditor.php
Normal file
29
app/Filament/Blog/Traits/HasContentEditor.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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',
|
||||
]));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user