PHPackages                             comradepashka/yii2-tinymce - 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. [Templating &amp; Views](/categories/templating)
4. /
5. comradepashka/yii2-tinymce

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

comradepashka/yii2-tinymce
==========================

TinyMCE widget with inline mode support

0.0.3.15(7y ago)0471Apache-2.0JavaScript

Since Mar 29Pushed 7y ago2 watchersCompare

[ Source](https://github.com/ComradePashka/yii2-tinymce)[ Packagist](https://packagist.org/packages/comradepashka/yii2-tinymce)[ RSS](/packages/comradepashka-yii2-tinymce/feed)WikiDiscussions master Synced 4w ago

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

TinyMCE widget extension with inline mode support for Yii2 framework
====================================================================

[](#tinymce-widget-extension-with-inline-mode-support-for-yii2-framework)

There are about 20 extensions at [GitHub](http://github.com) which usually wrap TinyMCE in Html::activeTextarea() or Html::textarea() so we got htmlencoded content sent to the end user and moreover - TinyMCE wrapped in textarea tag which is completely inacceptable to extremly usefull inline mode behavior.

This extension wrap TinyMCE with div tag and made it inline by default.

2do list
--------

[](#2do-list)

There are few things that better to fix and/or add more flexibility:

- i18n for widget uses yii::$app-&gt;language settings but for English language it will be changed to en\_GB by default. Not the best way.
- content\_css options ALWAYS use static url to '/css/site.css' file and dynamically detects location of the Bootstrap CSS. Have to figure out how to attach them automatically. **See below**
- widget ALWAYS use beforeValidate event handler for changing name of hidden input generated by TinyMCE for correct posting form variables

Here is short description for parts used in final substitution:

```
$('#{$id}').attr('name');   // original name-attribute for inline editor
$('#{$id}').html();         // original post inside inline editor
$('[name={$id}]')           // hidden input

```

Bugs
----

[](#bugs)

Due to dynamic change of form elements there might be strange behavior related to CSRF. I've got HTTP 400 error during posting form data and couldn't realize what happens but later when I switch languages in my app everything start working normally. Need more investigation.

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

[](#installation)

The preferred way to install this extension should be [composer](http://getcomposer.org/download/). Now package published at [Packagist](https://packagist.org/packages/comradepashka/yii2-tinymce)and support [Semantic Versioning](http://semver.org/)

So you either run

```
php composer.phar require --prefer-dist comradepashka/yii2-tinymce

```

or add

```
"comradepashka/yii2-tinymce": "*"

```

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

Usage
-----

[](#usage)

```
$form->field($model, "body")->widget(TinyMce::className(), $optionsArray)

```

Now you can pass configuration value 'extraCss'

```
'extraCss' => "/css/site.css,/css/tinyMCE.css,",

```

using configuration array.

Styles will be used in addition to default bootstrap styles internally in editor.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 90.6% 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 ~109 days

Recently: every ~1 days

Total

11

Last Release

2652d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ec9390acf9f422b946ec04ed4710899ebf654eebb907d05814ebb34c1c7d382?d=identicon)[ComradePashka](/maintainers/ComradePashka)

---

Top Contributors

[![ComradePashka](https://avatars.githubusercontent.com/u/15798005?v=4)](https://github.com/ComradePashka "ComradePashka (29 commits)")[![viktorprogger](https://avatars.githubusercontent.com/u/7670669?v=4)](https://github.com/viktorprogger "viktorprogger (3 commits)")

---

Tags

yii2extensiontinymce

### Embed Badge

![Health badge](/badges/comradepashka-yii2-tinymce/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[zxbodya/yii2-tinymce

Yii2 extension to use TinyMce with Compressor and FileManager

1732.4k3](/packages/zxbodya-yii2-tinymce)

PHPackages © 2026

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