@props([ 'name' => 'catatan', 'id' => null, 'rows' => 4, 'placeholder' => 'Tulis catatan...', 'value' => '', 'required' => false, 'class' => '', 'error' => null ]) @php $editorId = $id ?? 'catatan-editor-' . uniqid(); $inputId = $editorId . '-input'; // Calculate height based on rows (approx 24px per row) $editorHeight = ($rows * 24) + 20; @endphp
{{-- Quill Editor Container --}}
{{-- Hidden input to store HTML content --}} @if($error)
{{ $error }}
@endif
@once @push('styles') {{-- Quill CSS --}} @endpush @push('scripts') {{-- Quill JS --}} @endpush @endonce {{-- Inline script for this specific editor instance --}} @push('scripts') @endpush