helios-ag / fm-summernote-bundle
Summernote bundle, adds Summernote WYSIWYG editor to your Symfony project
Installs: 28 409
Dependents: 0
Suggesters: 7
Security: 0
Stars: 6
Watchers: 2
Forks: 11
Open Issues: 1
Type:symfony-bundle
Requires
- php: ^8.1
- ext-json: *
- symfony/config: ^6.4 || ^7.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/framework-bundle: ^6.4 || ^7.0
- symfony/http-kernel: ^6.4 || ^7.0
- symfony/twig-bundle: ^6.4 || ^7.0
Requires (Dev)
- matthiasnoback/symfony-config-test: ^5.0
- matthiasnoback/symfony-dependency-injection-test: ^6.1
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-symfony: ^1.3
- phpunit/phpunit: ^10.5
- rector/rector: ^1.0
- symfony/phpunit-bridge: ^6.4 || ^7.0
- symfony/var-dumper: ^6.4 || ^7.0
- vimeo/psalm: ^5.22
Suggests
- helios-ag/fm-elfinder-bundle: Elfinder bundle, file manager
- helios-ag/fm-rfm-bundle: Richfilemanager bundle, file manager
This package is auto-updated.
Last update: 2025-08-26 10:06:08 UTC
README
FMSummernoteBundle integrates the Summernote WYSIWYG editor with Symfony applications.
Requirements
- PHP 8.0 or higher
- Symfony 6.0 or higher
- jQuery (can be included automatically)
Installation
Step 1: Install the bundle
composer require helios-ag/fm-summernote-bundle
Step 2: Enable the bundle
If you're using Symfony Flex, the bundle will be enabled automatically. Otherwise, enable it in your config/bundles.php
file:
// config/bundles.php return [ // ... FM\SummernoteBundle\FMSummernoteBundle::class => ['all' => true], ];
Configuration
You can configure the bundle as follows, but note that the plugins "elfinder" and "video" are not supported in Jquery2.x.
fm_summernote: plugins: - video - elfinder # by default plugins not set, bundle comes with elfinder plugin / provides integration with FMElfinderBundle selector: .summernote #defines summernote selector for apply to toolbar: # define toolbars, if no toolbar configured, default toolbars defined style: [style] bold: [bold] extra_toolbar: # extra toolbar can be used for plugins toolbar and as additional toolbar setings, when 'toolbar' option is omitted elfinder: [elfinder] width: 600 height: 400 language: '' # define language (with language culture code like de-DE, fr-FR, etc.) by default, it is in english include_jquery: true #include js libraries, if your template already have them, set to false include_bootstrap: true include_fontawesome: true
Usage
Twig template example
{{ summernote_init() }} <textarea class="summernote"></textarea>