Parcourir la source

260109 editor樣式調整

OMEGA\lulufj.ho il y a 2 mois
Parent
révision
4391a42793
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8
    1
      app/Filament/Resources/EsgResource.php

+ 8
- 1
app/Filament/Resources/EsgResource.php Voir le fichier

149
                                             ->enabledToolbars($editor_toolbar)
149
                                             ->enabledToolbars($editor_toolbar)
150
                                             ->required()
150
                                             ->required()
151
                                             ->live(onBlur: true)
151
                                             ->live(onBlur: true)
152
-                                            ->columnSpanFull(),
152
+                                            ->columnSpanFull()
153
+                                            ->basicColors([
154
+                                                '#000000',
155
+                                                '#333333',
156
+                                                '#666666',
157
+                                                '#999999',
158
+                                                '#ffffff',  
159
+                                            ]),
153
                                         FilamentLexicalEditor::make('block_content_en')
160
                                         FilamentLexicalEditor::make('block_content_en')
154
                                             ->label('English Content')
161
                                             ->label('English Content')
155
                                             ->id(fn ($get) => "block_content_en_" . $get('block_item_key') . "_" . uniqid())
162
                                             ->id(fn ($get) => "block_content_en_" . $get('block_item_key') . "_" . uniqid())