PHPackages                             stump90/yii2-redactor - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. stump90/yii2-redactor

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

stump90/yii2-redactor
=====================

A redactor extension for the Yii2 Framework.

2.90.3(3y ago)28101BSD-3-ClauseJavaScript

Since Jan 14Pushed 3y agoCompare

[ Source](https://github.com/StuMP90/yii2-redactor)[ Packagist](https://packagist.org/packages/stump90/yii2-redactor)[ RSS](/packages/stump90-yii2-redactor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (9)Used By (0)

StuMP90/yii2-redactor
=====================

[](#stump90yii2-redactor)

A redactor extension for Yii2 Framework. This version is a fork of yiidoc/yii2-redactor to allow some additional settings and options.

For install, replace "yiidoc/" with "stump90/" along with a repository if this has not been published on packagelist yet...

Changes
-------

[](#changes)

### English (UK) language added

[](#english-uk-language-added)

```
    'clientOptions' => [
        ...
        'lang' => 'en_gb',
        ...
    ]

```

### .size()

[](#size)

.size() replaced with .length for JQuery compatibility.

### removePastedImages (default false)

[](#removepastedimages-default-false)

Additional option to remove images pasted in to content (as base64 data) - less restrictive than pastePlainText.

### removePastedImagesMessage (default blank)

[](#removepastedimagesmessage-default-blank)

Additional option to tell users the correct way to upload images.

```
        'clientOptions' => [
            ...
            'pastePlainText' => false,
            'removePastedImages' => true,
            'removePastedImagesMessage' => "Please upload images via filemanager or drag'n'drop",
            ...
        ]

```

### authUserDir config option

[](#authuserdir-config-option)

Additional config option added - authUserDir (default blank, allowed characters a-zA-Z0-9 only) When set, this hides logged in user id's in file paths and uses a common folder for all logged in users. The guest user file path is still 'guest'.

```
    'modules' => [
        'redactor' => [
            'class' => 'yii\redactor\RedactorModule',
            'uploadDir' => '@webroot/uploads',
            'uploadUrl' => '@web/uploads',
            'imageAllowExtensions'=>['jpg','jpeg','png','gif','webp'],
            'authUserDir' => 'files'
        ],
    ],

```

### Integrate Redactor-10-clipboardPaste-plugin

[](#integrate-redactor-10-clipboardpaste-plugin)

Integrated CFDan's clipboardPaste plugin and added clipboard upload action.

Source:

```
        'clientOptions' => [
            ...
            'removePastedImages' => true,
            'removePastedImagesMessage' => "",
            'plugins' => ['fontcolor','imagemanager','filemanager','clipboardPaste'],
            'clipboardUploadUrl' => ['/redactor/upload/image-clip'],
            'clipboardUpload' => true,
            ...
        ]

```

Original yiidoc/yii2-redactor Readme:
=====================================

[](#original-yiidocyii2-redactor-readme)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist yiidoc/yii2-redactor "*"

```

or

```
 "yiidoc/yii2-redactor": "*"

```

to the require section of your composer.json.

Configure
---------

[](#configure)

Add to config file (config/web.php or common\\config\\main.php)

```
    'modules' => [
        'redactor' => 'yii\redactor\RedactorModule',
    ],

```

or if you want to change the upload directory. to path/to/uploadfolder default value `@webroot/uploads`

```
    'modules' => [
        'redactor' => [
            'class' => 'yii\redactor\RedactorModule',
            'uploadDir' => '@webroot/path/to/uploadfolder',
            'uploadUrl' => '@web/path/to/uploadfolder',
            'imageAllowExtensions'=>['jpg','png','gif']
        ],
    ],

```

note: You need to create uploads folder and chmod and set security for folder upload reference: [Protect Your Uploads Folder with .htaccess](http://tomolivercv.wordpress.com/2011/07/24/protect-your-uploads-folder-with-htaccess/), [How to Setup Secure Media Uploads](http://digwp.com/2012/09/secure-media-uploads/)

Config view/form

```

```

or not use ActiveField

```

```

or config advanced redactor reference [Docs](http://imperavi.com/redactor/docs/)

```

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 73.3% 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 ~450 days

Recently: every ~4 days

Total

7

Last Release

1434d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c84df9c2bc0ceaa7571751194bf189cfc75c8861cba0838641f18ca7336e5a6e?d=identicon)[StuPLP90](/maintainers/StuPLP90)

---

Top Contributors

[![zinzinday](https://avatars.githubusercontent.com/u/441560?v=4)](https://github.com/zinzinday "zinzinday (33 commits)")[![StuMP90](https://avatars.githubusercontent.com/u/11777987?v=4)](https://github.com/StuMP90 "StuMP90 (4 commits)")[![alexantr](https://avatars.githubusercontent.com/u/4941848?v=4)](https://github.com/alexantr "alexantr (2 commits)")[![Alez](https://avatars.githubusercontent.com/u/552143?v=4)](https://github.com/Alez "Alez (2 commits)")[![mklemarczyk](https://avatars.githubusercontent.com/u/2727261?v=4)](https://github.com/mklemarczyk "mklemarczyk (1 commits)")[![Rjgoolsby](https://avatars.githubusercontent.com/u/10386821?v=4)](https://github.com/Rjgoolsby "Rjgoolsby (1 commits)")[![halfling-rram](https://avatars.githubusercontent.com/u/7976161?v=4)](https://github.com/halfling-rram "halfling-rram (1 commits)")[![Alex-Bond](https://avatars.githubusercontent.com/u/1134715?v=4)](https://github.com/Alex-Bond "Alex-Bond (1 commits)")

---

Tags

yii2extensionwysiwygRedactorimperavihtml editor

### Embed Badge

![Health badge](/badges/stump90-yii2-redactor/health.svg)

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

###  Alternatives

[yiidoc/yii2-redactor

Extension redactor for Yii2 Framework.

191618.8k47](/packages/yiidoc-yii2-redactor)[vova07/yii2-imperavi-widget

The imperavi redactor widget for Yii 2 framework.

243979.7k40](/packages/vova07-yii2-imperavi-widget)[bizley/contenttools

ContentTools editor implementation for Yii 2.

8016.7k](/packages/bizley-contenttools)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[jodit/yii2-jodit

Jodit - awesome WYSIWYG Editor like widget for Yii2

1621.5k](/packages/jodit-yii2-jodit)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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