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()
+3 -14
View File
@@ -70,21 +70,10 @@ class EventResource extends Resource
]),
Builder\Block::make('paragraph')
->schema([
RichEditor::make('content')
->toolbarButtons([
'blockquote',
'bold',
'bulletList',
'italic',
'link',
'orderedList',
'redo',
'strike',
'underline',
'undo',
])
TinyEditor::make('content')
->label('')
->required()
->profile('test')
->required(),
])->label('Текст'),
Builder\Block::make('image')
->schema([
+10 -16
View File
@@ -34,6 +34,7 @@ use Illuminate\Database\Eloquent\SoftDeletingScope;
use Illuminate\Support\Carbon;
use Illuminate\Support\Str;
use Livewire\Features\SupportFileUploads\TemporaryUploadedFile;
use Mohamedsabil83\FilamentFormsTinyeditor\Components\TinyEditor;
class FacultyResource extends Resource
{
@@ -83,20 +84,10 @@ class FacultyResource extends Resource
]),
Builder\Block::make('paragraph')
->schema([
RichEditor::make('content')
->toolbarButtons([
'blockquote',
'bold',
'bulletList',
'italic',
'link',
'orderedList',
'redo',
'strike',
'underline',
'undo',
])
->label(''),
TinyEditor::make('content')
->label('')
->profile('test')
->required(),
])->label('Текст'),
Builder\Block::make('files')
->schema([
@@ -164,8 +155,11 @@ class FacultyResource extends Resource
TextInput::make('title')
->required()
->maxLength(255)->columnSpanFull(),
RichEditor::make('content')->required(),
])->minItems(1),
TinyEditor::make('content')
->label('')
->profile('test')
->required(),
])->minItems(1),
]),
Builder\Block::make('tabs')
->schema([