PHP code example of winternet-studio / yii2-tinymce
1. Go to this page and download the library: Download winternet-studio/yii2-tinymce library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
winternet-studio / yii2-tinymce example snippets
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,
]
]);
php composer.phar