Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Ckeditor Bundle

Ckeditor Bundle Laravel Package

ailove-dev/ckeditor-bundle

View on GitHub
Deep Wiki
Context7

Simple implementation of ckeditor form field based on trsteel88 / TrsteelCkeditorBundle. Integration with SonataMediaBundle

Frequently asked questions about Ckeditor Bundle
Can I use ailove-dev/ckeditor-bundle directly in Laravel without Symfony?
No, this bundle is Symfony-specific and relies on its Bundle architecture and Dependency Injection. You’d need to abstract its core functionality (e.g., CKEditorType) into Laravel Form Macros or custom components, which may introduce compatibility gaps. For a Laravel-native solution, consider unisharp/laravel-ckeditor instead.
What Laravel versions does this bundle support?
The bundle requires PHP ≥5.3.1, which is outdated for modern Laravel (8.x+ needs PHP 7.4+). While CKEditor itself works with newer PHP, the bundle’s Symfony dependencies may conflict. Test thoroughly or use a Laravel-specific package like unisharp/laravel-ckeditor for guaranteed compatibility.
How do I integrate CKEditor in Laravel without this bundle?
For a lightweight approach, load CKEditor via CDN in your Blade views or npm (e.g., `ckeditor5-build-classic`). Use Laravel Form Macros to create a custom `ckeditor` field, like `Form::macro('ckeditor', fn($name) => Form::textarea($name, ['class' => 'ckeditor']));`. For media management, pair it with Spatie Media Library.
Does this bundle support media uploads like SonataMediaBundle?
The bundle integrates with SonataMediaBundle, but Laravel lacks native support for Symfony bundles. Replace it with Spatie Media Library or Filament Media Manager. You’ll need to manually adapt the upload logic to Laravel’s storage (e.g., S3, local) and handle events via Laravel’s service container instead of Symfony’s EventDispatcher.
Will Laravel Mix/Vite work with this bundle’s assets?
Yes, but manually. The bundle’s JS/CSS assets would need inclusion via Mix or Vite (e.g., `@vite(['resources/js/ckeditor.js'])`). CKEditor’s core files can be loaded via npm (`npm install @ckeditor/ckeditor5-build-classic`), while bundle-specific assets may require custom Webpack/Vite configs to avoid Symfony’s asset pipeline.
Are there better Laravel alternatives to this bundle?
Yes. For CKEditor, use `unisharp/laravel-ckeditor` (Laravel-native, actively maintained). For media management, Spatie’s Media Library or Filament Media Manager are superior to SonataMediaBundle. These packages avoid Symfony dependencies entirely and align with Laravel’s ecosystem.
How do I configure CKEditor toolbar plugins in Laravel?
Create a `config/ckeditor.php` file in Laravel and define your toolbar config (e.g., `['toolbar' => ['bold', 'italic']]`). Load CKEditor via CDN or npm, then initialize it in JavaScript: `ClassicEditor.create(document.querySelector('.ckeditor'), { toolbar: { items: config('ckeditor.toolbar') } })`. Avoid Symfony’s configuration system.
What’s the risk of using this bundle in a production Laravel app?
High. The bundle’s Symfony dependencies (e.g., EventDispatcher, Twig) may conflict with Laravel’s architecture. Hidden dependencies could break functionality, and the low adoption (1 star) signals unproven reliability. For production, prefer `unisharp/laravel-ckeditor` or a manual CDN integration with fallback testing.
Can I migrate from Symfony’s TrsteelCkeditorBundle to this Laravel bundle?
No direct migration path exists. You’d need to rewrite Symfony-specific logic (e.g., Bundle services, EventDispatcher listeners) into Laravel’s Service Container and Blade/Twig replacements. Start with a proof-of-concept using Laravel Form Macros and CKEditor’s CDN/npm integration before committing.
How do I test CKEditor integration in Laravel before full deployment?
Start with a minimal setup: Add CKEditor via CDN to a Blade form, create a Form Macro for the textarea, and test basic editing in a local Laravel environment. Use Laravel’s built-in testing tools to verify form submission and data persistence. For media uploads, mock Spatie Media Library’s storage logic before full integration.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
anousss007/vigilance
supportpal/eloquent-model
ardenexal/fhir-models
laravel-at/laravel-image-sanitize
romalytar/yammi-audit-log-laravel
ardenexal/fhir-validation
arshaviras/weather-widget
laravel-chronicle/core
sunchayn/nimbus
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon