瀏覽代碼

260109 editor樣式調整

OMEGA\lulufj.ho 3 週之前
父節點
當前提交
4391a42793
共有 1 個檔案被更改,包括 8 行新增1 行删除
  1. 8
    1
      app/Filament/Resources/EsgResource.php

+ 8
- 1
app/Filament/Resources/EsgResource.php 查看文件

@@ -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())