@props([ 'name', 'id' => null, 'value' => '', 'label' => null, 'placeholder' => 'Write content here...', 'height' => '220px', 'toolbar' => 'standard', 'required' => false, ]) @php $editorId = $id ?? 'rich-editor-'.preg_replace('/[^a-z0-9_-]/i', '-', $name); $inputId = $editorId.'-input'; $content = old($name, $value); @endphp
merge(['class' => 'rich-editor-field mb-3']) }}> @if ($label) @endif
{!! $content !!}
@error($name)
{{ $message }}
@enderror