PHPackages                             peresmishnyk/backpack-summernote - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. peresmishnyk/backpack-summernote

ActiveLibrary[Templating &amp; Views](/categories/templating)

peresmishnyk/backpack-summernote
================================

Extended summernote fields for laravel backpack

2.0.2(1y ago)04.4kMITPHP

Since May 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/peresmishnyk/backpack-summernote)[ Packagist](https://packagist.org/packages/peresmishnyk/backpack-summernote)[ Docs](https://github.com/peresmishnyk/backpack-summernote)[ RSS](/packages/peresmishnyk-backpack-summernote/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (4)Versions (11)Used By (0)

BackpackSummernote
==================

[](#backpacksummernote)

[![Latest Version on Packagist](https://camo.githubusercontent.com/68fb1a466a7ae06c19fb2b8d09e08c1d60314e6033e3d998aec8da9836945464/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70657265736d6973686e796b2f6261636b7061636b2d73756d6d65726e6f74652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/peresmishnyk/backpack-summernote)[![Total Downloads](https://camo.githubusercontent.com/3998a261531e5c0856bde67050400f2f8d5d990682151588735aec7b77987c0a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70657265736d6973686e796b2f6261636b7061636b2d73756d6d65726e6f74652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/peresmishnyk/backpack-summernote)[![The Whole Fruit Manifesto](https://camo.githubusercontent.com/9fc65ecdd629dc33c369f73e0bc051740f01647367c131a574577fea2a5678bb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f77726974696e672532307374616e646172642d74686525323077686f6c6525323066727569742d627269676874677265656e)](https://github.com/the-whole-fruit/manifesto)

This package provides additional functionality for projects that use the [Backpack for Laravel](https://backpackforlaravel.com/) administration panel.

More exactly, it adds pre configured summernote field and HTML cleaner so that you can easily edit rich content and has clear HTML after.

Screenshots
-----------

[](#screenshots)

> **// TODO: add a screenshot and delete these lines;**to add a screenshot to a github markdown file, the easiest way is to open an issue, upload the screenshot there with drag&amp;drop, then close the issue; you now have that image hosted on Github's servers; so you can then right-click the image to copy its URL, and use that URL wherever you want (for example... here)

[![Backpack Toggle Field Addon](https://camo.githubusercontent.com/b3c12818c44e1245eda449e25b601ccb9d8a08ae587027f980cf36919243c346/68747470733a2f2f7669612e706c616365686f6c6465722e636f6d2f363030783235303f746578743d73637265656e73686f742b6e6565646564)](https://camo.githubusercontent.com/b3c12818c44e1245eda449e25b601ccb9d8a08ae587027f980cf36919243c346/68747470733a2f2f7669612e706c616365686f6c6465722e636f6d2f363030783235303f746578743d73637265656e73686f742b6e6565646564)

Installation
------------

[](#installation)

Via Composer

```
composer require peresmishnyk/backpack-summernote
```

Usage
-----

[](#usage)

To use the field this package provides, inside your custom CrudController do:

```
$this->crud->addField([
    'name' => 'article',
    'label' => 'Article body',
    'type' => 'summernote',
    'view_namespace' => 'peresmishnyk.backpack-summernote::fields',
]);
```

Notice the `view_namespace` attribute - make sure that is exactly as above, to tell Backpack to load the field from this *addon package*, instead of assuming it's inside the *Backpack\\CRUD package*.

To clear submited HTML, in your model do:

```
HTMLCleaner::clear($value);
```

OR

```
    public static function boot()
    {
        parent::boot();

        // Setup event bindings...
        News::saving(function (News $news) {
            // Use custom rules
            $rules = 'video,source,strong,b,u,i,br,p[class],span[class|style],a[href|target],h1,h2,h3,h4,h5,h6,img[src|style|width|height|data-filename],hr,code,blockquote,ul,ol,li,iframe,font[color],table,tr,td,th,thead,colgroup,col,tfoot,tbody,strike,sup,sub';
            $news->body = HTMLCleaner::clear($news->body, rules);
        });
    }
```

Overwriting
-----------

[](#overwriting)

If you need to change the field in any way, you can easily publish the file to your app, and modify that file any way you want. But please keep in mind that you will not be getting any updates.

**Step 1.** Copy-paste the blade file to your directory:

```
# create the fields directory if it's not already there
mkdir -p resources/views/vendor/backpack/crud/fields

# copy the blade file inside the folder we created above
cp -i vendor/peresmishnyk/backpack-summernote/src/resources/views/fields/field_name.blade.php resources/views/vendor/backpack/crud/fields/field_name.blade.php
```

**Step 2.** Remove the vendor namespace wherever you've used the field:

```
$this->crud->addField([
    'name' => 'agreed',
    'type' => 'toggle',
    'label' => 'I agree to the terms and conditions',
-   'view_namespace' => 'peresmishnyk.backpack-summernote::fields'
]);
```

**Step 3.** Uninstall this package. Since it only provides one file, and you're no longer using that file, it makes no sense to have the package installed:

```
composer remove peresmishnyk/backpack-summernote
```

Change log
----------

[](#change-log)

Changes are documented here on Github. Please see the [Releases tab](https://github.com/peresmishnyk/backpack-summernote/releases).

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for a todolist and howtos.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Michkire Dmytro](https://github.com/peresmishnyk)
- [All Contributors](../../contributors)

License
-------

[](#license)

This project was released under MIT, so you can install it on top of any Backpack &amp; Laravel project. Please see the [license file](license.md) for more information.

However, please note that you do need Backpack installed, so you need to also abide by its [YUMMY License](https://github.com/Laravel-Backpack/CRUD/blob/master/LICENSE.md). That means in production you'll need a Backpack license code. You can get a free one for non-commercial use (or a paid one for commercial use) on [backpackforlaravel.com](https://backpackforlaravel.com).

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance47

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~178 days

Recently: every ~345 days

Total

9

Last Release

395d ago

Major Versions

v1.0.7 → 2.0.22025-04-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/9dfc5a54feed8b4fc503860978df27a51c39724e00af2ca51c6cc861cdb368d2?d=identicon)[peresmishnyk](/maintainers/peresmishnyk)

---

Top Contributors

[![peresmishnyk](https://avatars.githubusercontent.com/u/1893866?v=4)](https://github.com/peresmishnyk "peresmishnyk (24 commits)")

---

Tags

laravelbackpackBackpack for LaravelBackpack AddonBackpackSummernote

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/peresmishnyk-backpack-summernote/health.svg)

```
[![Health](https://phpackages.com/badges/peresmishnyk-backpack-summernote/health.svg)](https://phpackages.com/packages/peresmishnyk-backpack-summernote)
```

###  Alternatives

[backpack/theme-tabler

UI for Backpack v6 that uses Tabler and Bootstrap v5.

35536.5k](/packages/backpack-theme-tabler)[backpack/activity-log

Activity Log for Backpack

3487.5k1](/packages/backpack-activity-log)[backpack/translation-manager

Translation Manager for Backpack

5118.9k1](/packages/backpack-translation-manager)[backpack/medialibrary-uploaders

Helper functions to save files with spatie media library

1373.3k](/packages/backpack-medialibrary-uploaders)[figlabhq/crud-resource-for-backpack

Build CRUD panels using fluent field definitions.

122.1k](/packages/figlabhq-crud-resource-for-backpack)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
