PHPackages                             murodov20/yii2-redactor-imgmanager - 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. [Image &amp; Media](/categories/media)
4. /
5. murodov20/yii2-redactor-imgmanager

ActiveYii2-extension[Image &amp; Media](/categories/media)

murodov20/yii2-redactor-imgmanager
==================================

Redactor with image manager, Image select widget and Multiple image placing widgets in one extension

1.0.0(8y ago)129MITJavaScript

Since Sep 20Pushed 8y ago3 watchersCompare

[ Source](https://github.com/murodov20/yii2-redactor-imgmanager)[ Packagist](https://packagist.org/packages/murodov20/yii2-redactor-imgmanager)[ Docs](https://github.com/murodov20/yii2-redactor-imgmanager)[ RSS](/packages/murodov20-yii2-redactor-imgmanager/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Imperavi Redactor with image manager functionality via db
=========================================================

[](#imperavi-redactor-with-image-manager-functionality-via-db)

Redactor with image manager, Image select widget and Multiple image placing widgets in one extension

Thanks to @vova07 for [yii2-imperavi-redactor](https://github.com/vova07/yii2-imperavi-redactor) and Thanks to @sam\_dark and @yiiext for purchasing OEM license

Imperavi Redactor is the paid commercial extension, but some developers of Yii bought OEM license for for all Yii developers. That's why this version of Redactor has OEM license and you can use it for all your commercial projects. But you cann't update Redactor to new version.

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

[](#installation)

> Don't use this extension in production. Extension under development. If you want to go hard with this, you can use version 1.0.0.

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

- Development:

Either run

```
    php composer.phar require murodov20/yii2-redactor-imgmanager "*"

```

or add

```
    "murodov20/yii2-redactor-imgmanager": "*"

```

- Production:

```
    php composer.phar require murodov20/yii2-redactor-imgmanager "^1.0"

```

or add

```
    "murodov20/yii2-redactor-imgmanager": "^1.0"

```

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

After this run migration:

```
php yii migrate --migrationPath="@vendor/murodov20/yii2-redactor-imgmanager/migrations"

```

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code.

Simple configuration:

First of all, you need to add photo-manager module to your project:

```
'modules' => [
		...
        'photo-manager' => [
            'class' => '\murodov20\redactor\PhotoManagerModule',
            'urlManager' => 'urlManager', //optional
        ]
        ...
    ],
```

In Redactor widget, Redactor will load image's src, In MultiplePhoto and PhotoInput widgets will be load image id.

Using widgets:

RedactorWidget:

```
