PHPackages                             sadovojav/yii2-ckeditor - 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. sadovojav/yii2-ckeditor

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

sadovojav/yii2-ckeditor
=======================

Yii2 CKEditor

54.7k27JavaScript

Since Jan 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/sadovojav/yii2-ckeditor)[ Packagist](https://packagist.org/packages/sadovojav/yii2-ckeditor)[ RSS](/packages/sadovojav-yii2-ckeditor/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (7)

Yii2 CKEditor
=============

[](#yii2-ckeditor)

This is a fork [MihailDev/yii2-ckeditor](https://github.com/MihailDev/yii2-ckeditor)

#### Features:

[](#features)

- The ability to add custom plugins
- Initialisation editor on event
- Added custom plugins

Plugins:

- [Line Utilities](http://ckeditor.com/addon/lineutils)
- [Widget](http://ckeditor.com/addon/widget)
- [oembed](http://ckeditor.com/addon/oembed)
- Custom video (MP4, WebM)
- [Enhanced Image](http://ckeditor.com/addon/image2)

### Composer

[](#composer)

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

Either run `php composer.phar require sadovojav/yii2-ckeditor "dev-master"`

or add `"sadovojav/yii2-ckeditor": "dev-master"` to the require section of your `composer.json`

### Use

[](#use)

- Widget

```
use sadovojav\ckeditor\CKEditor;

echo CKEditor::widget();
```

- ActiveForm

```
use sadovojav\ckeditor\CKEditor;

echo $form->field($post, 'text_full')->widget(CKEditor::className());
```

#### Parameters

[](#parameters)

- array `editorOptions` - CKeditor options
- array `containerOptions` - Container options
- array `extraPlugins` - Extra plugins connection
- string `initOnEvent ` = `false` - Event type for initialization

##### Example

[](#example)

```
echo $form->field($post, 'text_full')->widget(CKEditor::className(), [
    'extraPlugins' => [
        ['test', '@root/uploads/plugins/test-plugin/', 'plugin.js']
    ],
    'editorOptions' => [
        'toolbar' => [
            ['Source', 'NewPage', 'Preview', 'Viewss'],
            ['PasteText', '-', 'Undo', 'Redo'],
            ['Replace', 'SelectAll', 'Scayt'],
            ['Format', 'FontSize'],
            ['Bold', 'Italic', 'Underline', 'TextColor', 'StrikeThrough', '-', 'Outdent', 'Indent', 'RemoveFormat',
                'Blockquote', 'HorizontalRule'],
            ['NumberedList', 'BulletedList', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight',
                'JustifyBlock'],
            ['Image', 'oembed', 'Video', 'Iframe'],
            ['Link', 'Unlink'],
            ['Maximize', 'ShowBlocks'],
            ['test']
        ],
        'allowedContent' => true,
        'forcePasteAsPlainText' => true,
        'extraPlugins' => 'test,image2,widget,oembed,video',
        'language' => Yii::$app->language,
        'height' => 500
    ],
]);
```

#### Initialisation editor on event

[](#initialisation-editor-on-event)

```
'initOnEvent' => 'focus' //dblclick, mouseover, etc.

```

#### Use extra plugins

[](#use-extra-plugins)

1. Add extra plugin connection information

```
'extraPlugins' => [
    ['test', '@root/uploads/plugins/test-plugin/', 'plugin.js']
],

```

- `test` required - plugin name
- `@root/uploads/plugins/test-plugin/` required - path to plugin
- `plugin.js` required - plugin script file

2. Add extra plugin to editorOptions -&gt; extraPlugins

```
'extraPlugins' => 'test,image2,oembed,widget,video',

```

Without space after comma.

3. If your plugin use the button, add it on the panel

```
'toolbar' => [
    ['test'],
],

```

### Links

[](#links)

- Mouse event -
- CKEditor Api -
- File manager ElFinder -

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/0c17a869a6d802f11218035a8936a1feb52479d8695584a3a8531442d5ec81bf?d=identicon)[sadovojav](/maintainers/sadovojav)

### Embed Badge

![Health badge](/badges/sadovojav-yii2-ckeditor/health.svg)

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

PHPackages © 2026

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