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

Summernote Bundle Laravel Package

adnedelcu/summernote-bundle

Symfony bundle that integrates the Summernote WYSIWYG editor. Install via Composer, enable in AppKernel, and configure selector, toolbar, size, and asset includes (jQuery/Bootstrap/FontAwesome). Optional plugins and pasted image upload via custom route.

View on GitHub
Deep Wiki
Context7

SummernoteBundle

SummernoteBundle adds summernote bundle

StyleCI Downloads Version License
StyleCI Total Downloads Latest Stable Version License

Installation

Step 1: Installation

Using Composer, just add the following configuration to your composer.json:

Or you can use composer to install this bundle: Add SummernoteBundle in your composer.json:

    composer require adnedelcu/summernote-bundle --no-update

Now tell composer to download the bundle by running the command:

    composer update adnedelcu/summernote-bundle

Step 2: Enable the bundle

Finally, enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new ADN\SummernoteBundle\ADNSummernoteBundle(),
    );
}

Configuration

You can configure bundle as follows

adn_summernote:
    plugins:
        - video
    selector: .summernote #defines summernote selector for apply to
    toolbar: # define toolbars, if no toolbar configured, default toolbars defined
        ['style', ['style']]
    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
    include_jquery: true #include js libraries, if your template already have them, set to false
    include_bootstrap: true
    include_fontawesome: true

To upload the images pasted in the editor, you can add the following configuration to the bundle

adn_summernote:
    # ...
    upload_images: true # set to false if you don't want to upload images
        # used for the image upload (so that the images will not be saved as base64 in the content)
        max_upload_size: 1048576
        # this route must be implemented if you want to use the image upload feature
        image_upload_route: acme_image_upload
    # ...

##Usage

Twig template example

    {{ summernote_init() }}
    <textarea class="summernote"></textarea>
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.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours