fonclub/yii2-tinymce

The TinyMCE Extension for yii framework

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 9

Type:yii2-extension

1.0.0 2015-01-24 04:45 UTC

This package is auto-updated.

Last update: 2024-10-23 03:05:56 UTC


README

The TinyMCE Extension for yii framework

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist fonclub/yii2-tinymce "*"

or add

"fonclub/yii2-tinymce": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

use fonclub\tinymce\TinyMCE;

echo TinyMCE::widget(['name' => 'text-content']);

$form->field($model, 'attribute')->widget(TinyMCE::className());

//toggle to tinyMCE or to textarea

echo TinyMCE::widget(['name' => 'text-content', 'toggle' => ['active' => true]]);

$form->field($model, 'attribute')->widget(TinyMCE::className(), [
	'toggle' => [
		'active' => true,
	]
]);

Thank`s moonlandsoft/yii2-tinymce ;)