PHPackages                             yii2-extensions/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. yii2-extensions/summernote

ActiveLibrary

yii2-extensions/summernote
==========================

Summernote - Super Simple WYSIWYG editor.

1213JavaScriptCI passing

Since Dec 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yii2-extensions/summernote)[ Packagist](https://packagist.org/packages/yii2-extensions/summernote)[ RSS](/packages/yii2-extensions-summernote/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](https://camo.githubusercontent.com/cc75562bca6e54e98046e4fb187ef8d96c997a8f31c6f4d2f6ed0c816413b47a/68747470733a2f2f7777772e7969696672616d65776f726b2e636f6d2f696d6167652f7969695f6c6f676f5f6c696768742e737667) ](https://github.com/yii2-extensions/summernote)

Summernote - Super Simple WYSIWYG editor.
=========================================

[](#summernote---super-simple-wysiwyg-editor)

 [ ![php-version](https://camo.githubusercontent.com/cfe9179013aaeb962182231f5cc56946d96d3c7356e64008b58bad1025cfb1e9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e312d373837434235) ](https://www.php.net/releases/8.1/en.php) [ ![PHPUnit](https://github.com/yii2-extensions/summernote/actions/workflows/build.yml/badge.svg) ](https://github.com/yii2-extensions/summernote/actions/workflows/build.yml) [ ![PHPUnit](https://github.com/yii2-extensions/summernote/actions/workflows/compatibility.yml/badge.svg) ](https://github.com/yii2-extensions/summernote/actions/workflows/compatibility.yml) [ ![Codecov](https://camo.githubusercontent.com/f9d0fb6f29828b5f362b4a357c1f071589160cb44f3d90b1e898fd2c398b7fcb/68747470733a2f2f636f6465636f762e696f2f67682f796969322d657874656e73696f6e732f73756d6d65726e6f74652f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4d4630585547564c5943) ](https://codecov.io/gh/yii2-extensions/summernote) [ ![Infection](https://camo.githubusercontent.com/27494e5035112b59d840477c37587eb7d14d5722bb1ddb46822a65dd635e973d/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246796969322d657874656e73696f6e7325324673756d6d65726e6f74652532466d61696e) ](https://dashboard.stryker-mutator.io/reports/github.com/yii2-extensions/summernote/main)

 [ ![](docs/images/summernote.png) ](https://github.com/yii2-extensions/summernote)

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

[](#installation)

The preferred way to install this extension is through [composer](https://getcomposer.org/download/).

Either run

```
composer require --dev --prefer-dist yii2-extensions/summernote

```

or add

```
"yii2-extensions/summernote": "dev-main"

```

to the require-dev section of your `composer.json` file.

Usage
-----

[](#usage)

### Name

[](#name)

```
use Yii2\Extensions\Summernote\Summernote;

echo Summernote::widget(
    [
        'name' => 'content',
        'value' => $value,
        'config' => [
            'focus' => true,
            'height' => 200,
            'maxHeight' => null,
            'minHeight' => null,
            'placeholder' => 'Write here...',
        ],
    ]
);
```

### Active Field

[](#active-field)

```
use Yii2\Extensions\Summernote\Summernote;

echo $form
    ->field($model, 'content')
    ->widget(
        Summernote::class,
        [
            'config' => [
                'focus' => true,
                'height' => 200,
                'maxHeight' => null,
                'minHeight' => null,
                'placeholder' => 'Write here...',
            ],
        ]
    );
```

### Properties of the widget

[](#properties-of-the-widget)

PropertyTypeDescriptionDefault`config``array `The configuration of the widget.`[]`> When YII\_ENV is set to `dev` or `test`, the widget will load the non-minified version of the JavaScript files, otherwise it will load the minified version.

Quality code
------------

[](#quality-code)

[![static-analysis](https://github.com/yii2-extensions/gii/actions/workflows/static.yml/badge.svg)](https://github.com/yii2-extensions/summernote/actions/workflows/static.yml)[![phpstan-level](https://camo.githubusercontent.com/5cb322768cf6be272de6246267f22cbd24eb4ed00e1953844bd8901e53191fe3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2532306c6576656c2d372d626c7565)](https://github.com/yii2-extensions/summernote/actions/workflows/static.yml)[![style-ci](https://camo.githubusercontent.com/50595d2d02d41e713d05a21234178d4e248b4338488c3260e5074005a4142871/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3731313230303035332f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/711200053?branch=main)

Support versions Yii2
---------------------

[](#support-versions-yii2)

[![Yii20](https://camo.githubusercontent.com/eb75eedd3cbc9159c862871d7ba5a079f2d8843e186c4365f72e55b402076f4b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5969693225323076657273696f6e2d322e302d626c7565)](https://github.com/yiisoft/yii2/tree/2.0.49.3)[![Yii22](https://camo.githubusercontent.com/f946cb5d9010fb3cc3f9d9530b51fee224bdbabe1345dd3f090dfbca82446217/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5969693225323076657273696f6e2d322e322d626c7565)](https://github.com/yiisoft/yii2/tree/2.2)

Testing
-------

[](#testing)

[Check the documentation testing](/docs/testing.md) to learn about testing.

Our social networks
-------------------

[](#our-social-networks)

[![Twitter](https://camo.githubusercontent.com/d077c362ac639792171af8bc002ee827816733dfc0925f70b557e6d151022226/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f747769747465722d666f6c6c6f772d3144413146323f6c6f676f3d74776974746572266c6f676f436f6c6f723d314441314632266c6162656c436f6c6f723d3535353535353f7374796c653d666c6174)](https://twitter.com/Terabytesoftw)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/524d2b46690f41fce7188d369488a35e7624e6c5a264d82aacd08548bfd156ab?d=identicon)[terabytesoftw](/maintainers/terabytesoftw)

---

Top Contributors

[![terabytesoftw](https://avatars.githubusercontent.com/u/42547589?v=4)](https://github.com/terabytesoftw "terabytesoftw (14 commits)")

---

Tags

summernotewidgetyii2yii2-extensions

### Embed Badge

![Health badge](/badges/yii2-extensions-summernote/health.svg)

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

PHPackages © 2026

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