|
|
|
|
|
|
123
|
FilamentLexicalEditor::make('content.text_content_tw')
|
123
|
FilamentLexicalEditor::make('content.text_content_tw')
|
|
124
|
->label('中文')
|
124
|
->label('中文')
|
|
125
|
|
125
|
|
|
126
|
- ->label(new \Illuminate\Support\HtmlString('
|
|
|
|
127
|
- 中文<br> <img src="' . asset('images/your-image.png') . '" alt="label image" class="h-6 w-auto" />
|
|
|
|
128
|
- '))
|
|
|
|
|
|
126
|
+ ->label(new \Illuminate\Support\HtmlString('中文 <a href="' . asset('images/tool-bar.png') . '", target="_blank">工具列說明</a>'))
|
|
129
|
->id(fn ($get) => "text_content_tw_" . $get('item_key') . "_" . uniqid())
|
127
|
->id(fn ($get) => "text_content_tw_" . $get('item_key') . "_" . uniqid())
|
|
130
|
->enabledToolbars($editor_toolbar)
|
128
|
->enabledToolbars($editor_toolbar)
|
|
131
|
->required()
|
129
|
->required()
|
|
|
|
|
|
|
150
|
}
|
148
|
}
|
|
151
|
}),
|
149
|
}),
|
|
152
|
FilamentLexicalEditor::make('block_content_tw')
|
150
|
FilamentLexicalEditor::make('block_content_tw')
|
|
153
|
- ->label('繁體中文內容')
|
|
|
|
|
|
151
|
+ // ->label('繁體中文內容')
|
|
|
|
152
|
+ ->label(new \Illuminate\Support\HtmlString('繁體中文內容 <a href="' . asset('images/tool-bar.png') . '", target="_blank">工具列說明</a>'))
|
|
154
|
->id(fn ($get) => "block_content_tw_" . $get('block_item_key') . "_" . uniqid())
|
153
|
->id(fn ($get) => "block_content_tw_" . $get('block_item_key') . "_" . uniqid())
|
|
155
|
->enabledToolbars($editor_toolbar)
|
154
|
->enabledToolbars($editor_toolbar)
|
|
156
|
->required()
|
155
|
->required()
|
|
|
|
|
|
|
274
|
->default(1)->inline(),
|
273
|
->default(1)->inline(),
|
|
275
|
FilamentLexicalEditor::make('col1_tw')
|
274
|
FilamentLexicalEditor::make('col1_tw')
|
|
276
|
->id(fn ($get) => "col1_tw_" . $get('simple_table_rows_key') . "_" . uniqid())
|
275
|
->id(fn ($get) => "col1_tw_" . $get('simple_table_rows_key') . "_" . uniqid())
|
|
|
|
276
|
+ ->label(new \Illuminate\Support\HtmlString('<a href="' . asset('images/tool-bar.png') . '", target="_blank">工具列說明</a>'))
|
|
277
|
->enabledToolbars($editor_toolbar)
|
277
|
->enabledToolbars($editor_toolbar)
|
|
278
|
->required()
|
278
|
->required()
|
|
279
|
->columnSpanFull(),
|
279
|
->columnSpanFull(),
|
|
|
|
|
|
|
305
|
->default(1)->inline(),
|
305
|
->default(1)->inline(),
|
|
306
|
FilamentLexicalEditor::make('col2_tw')
|
306
|
FilamentLexicalEditor::make('col2_tw')
|
|
307
|
->id(fn ($get) => "col2_tw_" . $get('simple_table_rows_key') . "_" . uniqid())
|
307
|
->id(fn ($get) => "col2_tw_" . $get('simple_table_rows_key') . "_" . uniqid())
|
|
|
|
308
|
+ ->label(new \Illuminate\Support\HtmlString('<a href="' . asset('images/tool-bar.png') . '", target="_blank">工具列說明</a>'))
|
|
308
|
->enabledToolbars($editor_toolbar)
|
309
|
->enabledToolbars($editor_toolbar)
|
|
309
|
->required()
|
310
|
->required()
|
|
310
|
->columnSpanFull(),
|
311
|
->columnSpanFull(),
|
|
|
|
|
|
|
336
|
->default(1),
|
337
|
->default(1),
|
|
337
|
FilamentLexicalEditor::make('col3_tw')
|
338
|
FilamentLexicalEditor::make('col3_tw')
|
|
338
|
->id(fn ($get) => "col3_tw_" . $get('simple_table_rows_key') . "_" . uniqid())
|
339
|
->id(fn ($get) => "col3_tw_" . $get('simple_table_rows_key') . "_" . uniqid())
|
|
|
|
340
|
+ ->label(new \Illuminate\Support\HtmlString('<a href="' . asset('images/tool-bar.png') . '", target="_blank">工具列說明</a>'))
|
|
339
|
->enabledToolbars($editor_toolbar)
|
341
|
->enabledToolbars($editor_toolbar)
|
|
340
|
->required()
|
342
|
->required()
|
|
341
|
->columnSpanFull(),
|
343
|
->columnSpanFull(),
|
|
|
|
|
|
|
367
|
->default(1)->inline(),
|
369
|
->default(1)->inline(),
|
|
368
|
FilamentLexicalEditor::make('col4_tw')
|
370
|
FilamentLexicalEditor::make('col4_tw')
|
|
369
|
->id(fn ($get) => "col4_tw_" . $get('simple_table_rows_key') . "_" . uniqid())
|
371
|
->id(fn ($get) => "col4_tw_" . $get('simple_table_rows_key') . "_" . uniqid())
|
|
|
|
372
|
+ ->label(new \Illuminate\Support\HtmlString('<a href="' . asset('images/tool-bar.png') . '", target="_blank">工具列說明</a>'))
|
|
370
|
->enabledToolbars($editor_toolbar)
|
373
|
->enabledToolbars($editor_toolbar)
|
|
371
|
->required()
|
374
|
->required()
|
|
372
|
->columnSpanFull(),
|
375
|
->columnSpanFull(),
|