kant/yii2-tinymce

There is no license information available for the latest version (0.2) of this package.

Tinymce widget for Yii 2

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

0.2 2017-09-11 03:16 UTC

This package is auto-updated.

Last update: 2024-04-14 18:41:13 UTC


README

This extension provides The Most Advanced WYSIWYG HTML Editor tinymce, called Gii, for Yii framework 2.0 applications.

For license information check the LICENSE-file.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist kant/yii2-tinymce

or add

"kant/yii2-tinymce": "~0.2"

to the require-dev section of your composer.json file.

Usage

Once the extension is installed, simply modify your application configuration as follows:

<?= $form->field($model, 'content')->textarea([
    //options
    ])->widget(TinymceWidget::class, [
        'clientOptions' => [
            'height' => '300px',
            //options
            ]
    ]); ?>

clientOptions are refered tinymce's official agruments:

see tinymce/docs