@props([ 'name' => 'content', 'value' => '', 'config' => 'default', 'height' => null, 'placeholder' => '', 'required' => false, 'disabled' => false, 'class' => '', 'id' => null ]) @php $editorId = $id ?? 'tinymce-' . Str::random(8); $editorClass = 'tinymce-editor ' . $class; // Get TinyMCE service $tinymceService = app(\App\Services\TinyMCEService::class); $editorConfig = $tinymceService->getConfig($config); // Override selector and height if provided $editorConfig['selector'] = '#' . $editorId; if ($height) { $editorConfig['height'] = $height; } if ($placeholder) { $editorConfig['placeholder'] = $placeholder; } @endphp @once @endonce @error($name)
{{ $message }}
@enderror