nucleos/sonata-ckeditor-bundle
Integrates CKEditor into Sonata Admin, providing a rich text editor for admin forms and content fields. This bundle helps add WYSIWYG editing to Sonata-based Symfony applications with simple configuration and familiar CKEditor tooling.
This is not a Laravel package — it's a Symfony bundle (nucleos/sonata-ckeditor-bundle) that wires CKEditor into Sonata Admin form types. As a Laravel developer, you won't composer require this into a Laravel app; it depends on Symfony's DI container, sonata-project/admin-bundle, and Symfony asset/configuration conventions. The realistic "first use" is one of two cases:
composer require nucleos/sonata-ckeditor-bundle, enable it in bundles.php, register the form type in your Sonata admin classes, and configure via config/packages/nucleos_sonata_ck_editor.yaml.unisharp/laravel-ckeditor, Filament's RichEditor/TinyMCE plugins, or a plain @ckeditor/ckeditor5-build-classic asset bundle. This bundle's API surface (Symfony form types, Sonata admin extensions) doesn't translate.Best starting point if you do touch it: the bundle's Resources/config for the form-type service definitions, and the Sonata Admin docs for how sonata_type_ckeditor fields are consumed. First use case: replacing a plain textarea in a Sonata admin CRUD form with a rich-text editor.
Patterns worth understanding (and porting conceptually to Laravel):
config/ckeditor.php file plus a service provider that publishes assets and passes options to the view — keeps editor config out of controllers and Vue/Blade markup.php artisan vendor:publish --tag=ckeditor-assets (or Vite) rather than hand-copying CKEditor builds.HttpKernel for an editor field.prePersist/preUpdate Sonata admin hooks (via AdminExtension or event subscribers) are where rich-text sanitization typically belongs — not in the editor config. Sanitize on save, regardless of stack.How can I help you explore Laravel packages today?