trumbowyg_js(), trumbowyg_css()), reducing boilerplate for asset inclusion and configuration.TrumbowygType, enabling type-safe rich-text fields in forms.assets:install).config.yml.assets:install for static assets (if not using Symfony Flex).include_jquery: true), which may conflict with existing projects using jQuery 3.x+ or other libraries (e.g., Bootstrap).0.9) may lag behind Trumbowyg’s upstream (current version: 2.x as of 2023)./bundles/alexdwtrumbowyg/) may break in Symfony Flex or modern asset pipelines (e.g., Webpack).include_jquery: true (may be redundant in modern SPAs).autogrow: false), which could lead to clipped content in fixed-height fields.trumbowyg_js()/trumbowyg_css() helpers.composer require alexdw/trumbowyg-bundle:^0.9.AlexdwTrumbowygBundle.php bin/console assets:install.config/packages/alexdw_trumbowyg.yaml (e.g., disable jQuery, customize buttons).alexdw_trumbowyg:
include_jquery: false
jquery_path: null # Let project provide jQuery
btns:
- ["bold", "italic"]
- ["link"]
textArea or textarea fields with TrumbowygType:
$builder->add('description', TrumbowygType::class, [
'label' => 'Content',
'reset_css' => true,
]);
{{ trumbowyg_js({'include_jquery': false}) }}
{{ trumbowyg_css() }}
| Factor | Compatibility Notes |
|---|---|
| Symfony Version | 2.8–4.0 (explicit). Test for 5.x if needed. |
| jQuery | Defaults to jQuery 3.2.1; may conflict with project’s jQuery version. |
| Asset Pipeline | Works with assets:install; may need Webpack Encore config for dynamic imports. |
| Twig | Requires Twig 1.x/2.x (Symfony’s default). |
| PHP Version | Implicitly tied to Symfony’s PHP version (7.1+ for Symfony 4/5). |
| Browser Support | Relies on Trumbowyg’s browser support. |
btns, language, and autogrow for use case.white-listed or HTMLPurifier).insertImage).assets:install, monitor for path changes in future Symfony versions.How can I help you explore Laravel packages today?