toolbarButtons($toolbar); if ($images) { $field->tools([ RichEditorTool::make('bild') ->label('Bild aus dem Medienbestand einfügen') ->icon(Heroicon::Photo) ->jsHandler('$wire.openTextImagePicker('.Js::from($name).', editorSelection)'), ]); } if ($live) { $field->live(onBlur: true); } if ($label !== null) { $field->label($label); } return $label === null || $hideLabel ? $field->hiddenLabel() : $field; } }