xlabs/trumbowygbundle
Laravel bundle that integrates the Trumbowyg WYSIWYG editor into your app. Provides ready-to-use assets, configuration, and helpers to add lightweight rich-text editing to forms and admin pages with minimal setup.
xlabs/trumbowygbundle provides a lightweight wrapper for the TrumboWYG editor, a modern, mobile-friendly WYSIWYG solution. This aligns well with Laravel applications requiring rich-text editing (e.g., CMS, blog platforms, or form builders).symfony/http-foundation). This reduces reinvention while maintaining Laravel’s ecosystem familiarity.FormBuilder or standalone usage).dompurify or Laravel’s Purifier to prevent XSS.dompurify or Purifier already in the stack?xlabs) actively maintained? (No stars/dependents suggest low adoption.)maatwebsite/laravel-wysiwyg)?maatwebsite/laravel-wysiwyg (CKEditor wrapper) or unisharp/laravel-filemanager.Post::body).composer require xlabs/trumbowygbundle
php artisan vendor:publish --provider="XLabs\TrumboWygBundle\TrumboWygBundle" --tag="config"
php artisan vendor:publish --provider="XLabs\TrumboWygBundle\TrumboWygBundle" --tag="public"
config/trumbo_wyg.php (e.g., disable plugins, set upload paths).{!! Form::text('content', null, ['class' => 'trumbowyg']) !!}
use DOMPurify;
$cleanHtml = DOMPurify::clean($request->input('content'));
resources/js/app.js or Vite config.jquery@~3.6.0 in package.json)..btn) may need scoping to avoid conflicts.xlabs/trumbowygbundle for updates (low priority; no active maintenance signals).npm/yarn (not Composer).composer update.<textarea> fallback for users with JS disabled.zlib if needed).Post models).| Failure Point | Impact | Mitigation |
|---|---|---|
| jQuery missing/conflict | Editor fails to load | Bundle jQuery with TrumboWYG assets. |
| XSS vulnerability | Malicious HTML injected | Enforce DOMPurify sanitization. |
| Asset compilation error | JS/CSS not loaded | Test in staging; use Vite’s strict mode. |
| Plugin incompatibility | Custom features break | Test plugins in isolation. |
| Database bloat | Slow queries on large HTML fields | Compress HTML or use a dedicated table. |
Form components).How can I help you explore Laravel packages today?