Refactor PageForm schema: Removed commented-out minHeight and placeholder properties for HTML and JSON fields in the PageForm schema, streamlining the code and improving readability.
This commit is contained in:
@@ -286,8 +286,6 @@ class PageForm
|
||||
->label(__('pages.section_data_value'))
|
||||
->visible(fn (Get $get) => $get('type') === 'html')
|
||||
->language(Language::Html)
|
||||
// ->minHeight('300px')
|
||||
// ->placeholder('<div>HTML kodu girin...</div>')
|
||||
->live(onBlur: true)
|
||||
->afterStateUpdated(fn ($state, callable $set) => $set('value', $state))
|
||||
->afterStateHydrated(function ($component, $state, Get $get) {
|
||||
@@ -308,8 +306,6 @@ class PageForm
|
||||
->label(__('pages.section_data_value'))
|
||||
->visible(fn (Get $get) => $get('type') === 'json')
|
||||
->language(Language::Json)
|
||||
//->minHeight('300px')
|
||||
// ->placeholder('{"key": "value"}')
|
||||
->live(onBlur: true)
|
||||
->afterStateUpdated(fn ($state, callable $set) => $set('value', $state))
|
||||
->afterStateHydrated(function ($component, $state, Get $get) {
|
||||
|
||||
Reference in New Issue
Block a user