PHPackages                             2amigos/yii2-tinymce-widget - 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. 2amigos/yii2-tinymce-widget

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

2amigos/yii2-tinymce-widget
===========================

TinyMCE widget for Yii2.

1.1.3(7y ago)1021.2M—9.2%50[10 issues](https://github.com/2amigos/yii2-tinymce-widget/issues)[2 PRs](https://github.com/2amigos/yii2-tinymce-widget/pulls)20BSD-3-ClauseJavaScript

Since Apr 2Pushed 4y ago20 watchersCompare

[ Source](https://github.com/2amigos/yii2-tinymce-widget)[ Packagist](https://packagist.org/packages/2amigos/yii2-tinymce-widget)[ Docs](http://yiiwheels.com/extension/tinymce-widget)[ RSS](/packages/2amigos-yii2-tinymce-widget/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (10)Used By (20)

TinyMCE Widget for Yii2
=======================

[](#tinymce-widget-for-yii2)

[![Latest Version](https://camo.githubusercontent.com/cb7ba66ce5049ba0c583d87f0c1f855b909d2b96d883a75dd4cb428a15a7bf87/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f32616d69676f732f796969322d74696e796d63652d7769646765742e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/2amigos/yii2-tinymce-widget/tags)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/4bea6acf2f738466fc1e4affe1be3348f8898762aa95d0142ee5c78a621b1be0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f32616d69676f732f796969322d74696e796d63652d7769646765742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/2amigos/yii2-tinymce-widget)[![Coverage Status](https://camo.githubusercontent.com/5cbf9a4467b8614da92cba49633745044efd21fdebd591d062cd483051f7a872/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f32616d69676f732f796969322d74696e796d63652d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-tinymce-widget/code-structure)[![Quality Score](https://camo.githubusercontent.com/9e7ead19603310bd05cc1b75124c0cca8363147503781ea07f5449ea2e3b93d3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f32616d69676f732f796969322d74696e796d63652d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-tinymce-widget)[![Total Downloads](https://camo.githubusercontent.com/6c98ed5c0e1484b82ea774212d87d989795ec53a1231005aeb8bff885d234b50/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f32616d69676f732f796969322d74696e796d63652d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/2amigos/yii2-tinymce-widget)

Renders a [TinyMCE WYSIWYG text editor plugin](http://www.tinymce.com/) widget.

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

[](#installation)

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

Either run

```
composer require 2amigos/yii2-tinymce-widget:~1.1

```

or add

```
"2amigos/yii2-tinymce-widget" : "~1.1"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

```

use dosamigos\tinymce\TinyMce;

```

### About ClientOptions

[](#about-clientoptions)

Please, remember that if you are required to add javascript to the configuration of the js plugin and is required to be plain JS, make use of `JsExpression`. That class was made by Yii for that specific purpose. For example:

```
// Having the following scenario

    function jsFunctionToBeCalled() {
        // ...
    }
