File tree 3 files changed +1
-14
lines changed
3 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,4 @@ enum TypeFieldEnum: string
13
13
case Select = 'select ' ;
14
14
case Textarea = 'textarea ' ;
15
15
case Datetime = 'datetime ' ;
16
- case RichEditor = 'rich_editor ' ;
17
- case MarkdownEditor = 'markdown_editor ' ;
18
16
}
Original file line number Diff line number Diff line change 4
4
5
5
use Filament \Forms \Components \Checkbox ;
6
6
use Filament \Forms \Components \DateTimePicker ;
7
- use Filament \Forms \Components \MarkdownEditor ;
8
- use Filament \Forms \Components \RichEditor ;
9
7
use Filament \Forms \Components \Select ;
10
8
use Filament \Forms \Components \Textarea ;
11
9
use Filament \Forms \Components \TextInput ;
@@ -52,16 +50,7 @@ public static function get(array $customFields): array
52
50
->label (__ ($ field ['label ' ]))
53
51
->placeholder (__ ($ field ['placeholder ' ]))
54
52
->seconds ($ field ['seconds ' ]);
55
- } elseif ($ field ['type ' ] === TypeFieldEnum::RichEditor->value ) {
56
- $ fields [] = RichEditor::make ($ fieldKey )
57
- ->label (__ ($ field ['label ' ]))
58
- ->toolbarButtons ($ field ['toolbarButtons ' ] ?? []);
59
- } elseif ($ field ['type ' ] === TypeFieldEnum::MarkdownEditor->value ) {
60
- $ fields [] = MarkdownEditor::make ($ fieldKey )
61
- ->label (__ ($ field ['label ' ]))
62
- ->toolbarButtons ($ field ['toolbarButtons ' ] ?? []);
63
53
}
64
-
65
54
}
66
55
67
56
return $ fields ;
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ public function form(Form $form): Form
147
147
$ arrTabs [] = Tabs \Tab::make ($ customTab ['label ' ])
148
148
->label (__ ($ customTab ['label ' ]))
149
149
->icon ($ customTab ['icon ' ])
150
- ->schema ($ customTab ['fields ' ])
150
+ ->schema (CustomForms:: get ( $ customTab ['fields ' ]) )
151
151
->columns ($ customTab ['columns ' ])
152
152
->statePath ('more_configs ' );
153
153
}
You can’t perform that action at this time.
0 commit comments