PHP code example of powerkernel / yii2-tinymce

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

    

powerkernel / yii2-tinymce example snippets


use powerkernel\tinymce\TinyMce;

<?= $form->field($model, 'text')->widget(TinyMce::class, []);

<?= $form->field($model, 'text')->widget(TinyMce::class, [
    'options' => ['rows' => 6],
    'clientOptions' => [
        'height'=>320,
        'menubar'=> true,
        'plugins' => [
            "advlist autolink lists link charmap print preview anchor",
            "searchreplace visualblocks code fullscreen",
            "insertdatetime media table contextmenu paste image"
        ],
        'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | removeformat code"
    ]    
]);