PHP code example of lord_svarog / yii2-tinymce-test-widget

1. Go to this page and download the library: Download lord_svarog/yii2-tinymce-test-widget 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/ */

    

lord_svarog / yii2-tinymce-test-widget example snippets


use lord_svarog\tinyMce\TinyMce;

    echo TinyMce::widget( [
            'name' => 'content',
            'options' => ['rows' => 6], // параметры передаваемые в Html::textarea
            'clientOptions' => [        // параметры передаваемые в tinymce.init()
                'language' => 'ru',
            ],
        ]);
    

use lord_svarog\tinyMce\TinyMce;

    echo $form->field($model, 'content')->widget(TinyMce::className(), [
        'options' => ['rows' => 6], // параметры передаваемые в Html::textarea
        'clientOptions' => [        // параметры передаваемые в tinymce.init()
            'language' => 'ru',
        ],
    ]);