@push('scripts') @vite(['resources/js/blog-editor.js'], 'build') @endpush @once @push('styles') @endpush @endonce @php $statePath = $getStatePath(); $state = $getState(); // If body_json is empty, fall back to body_html for initial content if (is_array($state)) { $initialContent = json_encode($state); } elseif (is_string($state) && !empty($state)) { $initialContent = $state; } else { // Try to get body_html as fallback (for posts seeded with HTML only) $record = $getRecord(); $initialContent = $record && $record->body_html ? $record->body_html : ''; } @endphp
Headings