瀏覽代碼

260224 超連結問題、label加圖

OMEGA\lulufj.ho 4 月之前
父節點
當前提交
9309bd4c53
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. 5
    1
      app/Filament/Resources/EsgResource.php

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

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