Pārlūkot izejas kodu

260109 editor樣式調整

OMEGA\lulufj.ho 3 nedēļas atpakaļ
vecāks
revīzija
4391a42793
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8
    1
      app/Filament/Resources/EsgResource.php

+ 8
- 1
app/Filament/Resources/EsgResource.php Parādīt failu

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