PHP code example of kaikaige / yii2-tinymce

1. Go to this page and download the library: Download kaikaige/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/ */

    

kaikaige / yii2-tinymce example snippets


<?= $form->field($model, 'attribute')->widget(\kaikaige\tinymce\TinyMce::class);

<?= $form->field($model, 'name')->widget(\kaikaige\tinymce\TinyMce::class, [
        'height'=>600, //高度,单位px
        'uploadUrl' => ['site/upload'], //图片上传地址
        'baseUrl' => "/", //
        'toolbar' => "",
        'clientOptions'=>[],
    ]); 

php composer.phar