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
             ToolbarItem::BOLD, ToolbarItem::ITALIC, ToolbarItem::UNDERLINE,
50
             ToolbarItem::BOLD, ToolbarItem::ITALIC, ToolbarItem::UNDERLINE,
51
             ToolbarItem::LINK, ToolbarItem::TEXT_COLOR, ToolbarItem::BACKGROUND_COLOR,
51
             ToolbarItem::LINK, ToolbarItem::TEXT_COLOR, ToolbarItem::BACKGROUND_COLOR,
52
             ToolbarItem::SUBSCRIPT, ToolbarItem::LOWERCASE, ToolbarItem::DIVIDER,
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
         return $form
55
         return $form
56
             ->schema([
56
             ->schema([
120
                                 Section::make('純文字設定')->schema([
120
                                 Section::make('純文字設定')->schema([
121
                                     FilamentLexicalEditor::make('content.text_content_tw')
121
                                     FilamentLexicalEditor::make('content.text_content_tw')
122
                                         ->label('中文')
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
                                         ->id(fn ($get) => "text_content_tw_" . $get('item_key') . "_" . uniqid())
127
                                         ->id(fn ($get) => "text_content_tw_" . $get('item_key') . "_" . uniqid())
124
                                         ->enabledToolbars($editor_toolbar)
128
                                         ->enabledToolbars($editor_toolbar)
125
                                         ->required()
129
                                         ->required()