|
|
@@ -213,7 +213,7 @@ class NewsResource extends Resource
|
|
213
|
213
|
Group::make()->schema([
|
|
214
|
214
|
FilamentLexicalEditor::make('text_content_tw')
|
|
215
|
215
|
// ->label('繁體中文內容')
|
|
216
|
|
- ->label(new \Illuminate\Support\HtmlString('繁體中文內容 <a href="' . asset('images/tool-bar.png') . '", target="_blank">工具列說明</a>'))
|
|
|
216
|
+ ->label(new \Illuminate\Support\HtmlString('繁體中文內容 <p href="#" style="cursor:pointer;color:blue;" onclick="var img = this.closest(\'div\').querySelector(\'img\');img.style.display = (img.style.display === \'none\') ? \'block\' : \'none\';"> 工具列說明</p><img src="' . asset('images/tool-bar.png') . '" style="display:none;">'))
|
|
217
|
217
|
->id(fn ($get) => "text_content_tw_" . $get('item_key') . "_" . uniqid())
|
|
218
|
218
|
->enabledToolbars([
|
|
219
|
219
|
ToolbarItem::UNDO, ToolbarItem::REDO, ToolbarItem::NORMAL,
|