This commit is contained in:
f4ilji
2024-12-24 16:20:50 +05:00
parent 5535bd6eb9
commit 5d66a2cc5a
15 changed files with 692 additions and 102 deletions
+7 -16
View File
@@ -74,20 +74,9 @@ class DivisionResource extends Resource
]),
Builder\Block::make('paragraph')->label('Текст')
->schema([
RichEditor::make('content')
->toolbarButtons([
'blockquote',
'bold',
'bulletList',
'italic',
'link',
'orderedList',
'redo',
'strike',
'underline',
'undo',
])
->label(''),
TinyEditor::make('content')
->label('')
->profile('test')
]),
Builder\Block::make('files')->label('Файлы')
->schema([
@@ -146,8 +135,10 @@ class DivisionResource extends Resource
->required()
->live()
->maxLength(255)->columnSpanFull(),
RichEditor::make('content')->required(),
])
TinyEditor::make('content')
->label('')
->profile('test')
->required(), ])
->itemLabel(fn (array $state): ?string => $state['title'] ?? null)
->minItems(1)
->collapsible()