@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