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

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

andrewdanilov/yii2-ckeditor
===========================

Yii2 CKEditor

1.0.1(5y ago)11064MITJavaScriptPHP &gt;=5.6.0

Since Sep 8Pushed 5y agoCompare

[ Source](https://github.com/AndrewDanilov/yii2-ckeditor)[ Packagist](https://packagist.org/packages/andrewdanilov/yii2-ckeditor)[ RSS](/packages/andrewdanilov-yii2-ckeditor/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (3)Used By (4)

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

[](#yii2-ckeditor)

This is a fork [sadovojav/yii2-ckeditor](https://github.com/sadovojav/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

`composer require andrewdanilov/yii2-ckeditor "~1.0.0"`

or add

`"andrewdanilov/yii2-ckeditor": "~1.0.0"`

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

### Use

[](#use)

- Widget

```
use andrewdanilov\ckeditor\CKEditor;

echo CKEditor::widget();
```

- ActiveForm

```
use andrewdanilov\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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

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 ~1 days

Total

2

Last Release

2071d ago

### Community

Maintainers

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

---

Top Contributors

[![AndrewDanilov](https://avatars.githubusercontent.com/u/2826370?v=4)](https://github.com/AndrewDanilov "AndrewDanilov (3 commits)")

---

Tags

yiieditorwysiwygCKEditor

### Embed Badge

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

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

###  Alternatives

[mihaildev/yii2-ckeditor

Yii2 CKEditor

118552.5k50](/packages/mihaildev-yii2-ckeditor)[ckeditor/ckeditor

JavaScript WYSIWYG web text editor.

5234.2M76](/packages/ckeditor-ckeditor)[unisharp/laravel-ckeditor

JavaScript WYSIWYG web text editor (for laravel).

377762.3k5](/packages/unisharp-laravel-ckeditor)[trsteel/ckeditor-bundle

Symfony bundle for easy integration of the CKEditor WYSIWYG

99630.9k9](/packages/trsteel-ckeditor-bundle)[w8tcha/ckeditor-wordcount-plugin

WordCount Plugin for CKEditor Editor

77470.2k](/packages/w8tcha-ckeditor-wordcount-plugin)[froala/yii2-froala-editor

A beautiful WYSIWYG HTML text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

109229.5k6](/packages/froala-yii2-froala-editor)

PHPackages © 2026

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