Browse Source

260224 超連結問題、label加圖

OMEGA\lulufj.ho 1 month ago
parent
commit
9309bd4c53
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      app/Filament/Resources/EsgResource.php

+ 5
- 1
app/Filament/Resources/EsgResource.php View File

@@ -50,7 +50,7 @@ class EsgResource extends Resource
50 50
             ToolbarItem::BOLD, ToolbarItem::ITALIC, ToolbarItem::UNDERLINE,
51 51
             ToolbarItem::LINK, ToolbarItem::TEXT_COLOR, ToolbarItem::BACKGROUND_COLOR,
52 52
             ToolbarItem::SUBSCRIPT, ToolbarItem::LOWERCASE, ToolbarItem::DIVIDER,
53
-            ToolbarItem::UPPERCASE, ToolbarItem::CLEAR, ToolbarItem::HR
53
+            ToolbarItem::UPPERCASE, ToolbarItem::CLEAR, ToolbarItem::HR, ToolbarItem::FONT_FAMILY
54 54
         ];
55 55
         return $form
56 56
             ->schema([
@@ -120,6 +120,10 @@ class EsgResource extends Resource
120 120
                                 Section::make('純文字設定')->schema([
121 121
                                     FilamentLexicalEditor::make('content.text_content_tw')
122 122
                                         ->label('中文')
123
+                                        
124
+                                            ->label(new \Illuminate\Support\HtmlString('
125
+      中文<br>  <img src="' . asset('images/your-image.png') . '" alt="label image" class="h-6 w-auto" />
126
+    '))
123 127
                                         ->id(fn ($get) => "text_content_tw_" . $get('item_key') . "_" . uniqid())
124 128
                                         ->enabledToolbars($editor_toolbar)
125 129
                                         ->required()