Skip to content

winternet-studio/yii2-tinymce

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winternet-studio/yii2-tinymce

The TinyMCE Extension for yii framework

Forked from Kaile/yii2-tinymce who forked it from the original author moonlandsoft/yii2-tinymce

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"winternet-studio/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 winternet\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,
	]
]);

About

The TinyMCE Extension for yii framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.9%
  • PHP 2.1%
  • CSS 1.0%