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

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

gfrodriguez/yii2-ckeditor
=========================

Yii2 CKEditor

1.0.0(7y ago)04.8k↓50%1JavaScriptPHP &gt;=5.4.0

Since Oct 4Pushed 7y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

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

[](#yii2-ckeditor)

This is a fork [MihailDev/yii2-ckeditor](https://github.com/MihailDev/yii2-ckeditor) and [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)
- [Enhanced Image](http://ckeditor.com/addon/image2)
- [Mathematical Formulas](https://ckeditor.com/addon/mathjax)
- [Word Count &amp; Char Count Plugin](https://ckeditor.com/addon/wordcount)
- [Table Resize](https://ckeditor.com/addon/tableresize)
- Etc...

### Composer

[](#composer)

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

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

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

### Use

[](#use)

- Widget

```
use gfrodriguez\ckeditor\CKEditor;

echo CKEditor::widget();
```

- ActiveForm

```
use gfrodriguez\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' => [
			['Preview', 'Viewss'],
			['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'],
			['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'],
			['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', 'TextColor', 'BGColor', '-', 'RemoveFormat'],
			['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
			['Image', 'Table', 'SpecialChar', 'Mathjax'],// 'Footnotes'],
			['Styles', 'Format'],
			['Maximize', 'ShowBlocks'],
			['About'],
        ],
        'allowedContent' => true,
        'forcePasteAsPlainText' => true,
        'extraPlugins' => 'test,image2,widget,oembed,video',
        'language' => Yii::$app->language,
        'height' => 500,
		'mathJaxLib' => '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML',
        'disableNativeSpellChecker' => false,
        'scayt_sLang' => Yii::$app->language,
        'removePlugins' => 'scayt,wsc',
        'disableNativeSpellChecker' => false,
        'qtRows' => 8, // Count of rows in the quicktable (default: 8)
        'qtColumns' => 10, // Count of columns in the quicktable (default: 10)
        'qtBorder' => '1', // Border of the inserted table (default: '1')
        'qtWidth' => '90%', // Width of the inserted table (default: '500px')
        'qtCellPadding' => '0', // Cell padding of the inserted table (default: '1')
        'qtCellSpacing' => '0', // Cell spacing of the inserted table (default: '1')
        'qtPreviewSize' => '14px', // Cell size of the preview table (default: '14px')
        'qtPreviewBackground' => '#c8def4' // Cell background of the preview table on hover (default: '#e5e5e5')
    ],
]);
```

#### 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' => 'dialog,lineutils,wordcount,notification,image2,widget,oembed,quicktable,tableresize,filetools,notificationaggregator,mathjax',

```

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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

2778d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12382314?v=4)[Gabriel Rodríguez](/maintainers/gfrodriguez)[@gfrodriguez](https://github.com/gfrodriguez)

---

Top Contributors

[![gfrodriguez](https://avatars.githubusercontent.com/u/12382314?v=4)](https://github.com/gfrodriguez "gfrodriguez (1 commits)")

---

Tags

yiieditorwysiwygCKEditor

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/gfrodriguez-yii2-ckeditor/health.svg)](https://phpackages.com/packages/gfrodriguez-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)
