@php $inp = 'w-full border-[0.5px] border-gray-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-teal-500/20 focus:border-teal-400'; @endphp @csrf @if($errors->any())
{{ $errors->first() }}
@endif
{{-- Toast UI WYSIWYG editor — progressive enhancement over the Markdown textarea. Content is stored as Markdown (Post::bodyHtml renders it XSS-safe), so the visual editor never introduces raw HTML into storage. Loaded async so a slow CDN can't block the page; init() polls for it and falls back to the textarea. --}}
{{-- Visual editor mounts here once the async script loads (hidden until then) --}}
{{-- Fallback / source of truth (hidden once the visual editor mounts) --}}

Format visually with the toolbar. Use the Markdown / WYSIWYG tabs at the bottom-right to switch modes.

{{-- Media Library picker --}}

Insert from Media Library

Leave empty to publish immediately. A future time schedules the post.

Cancel