PHP code example of besnovatyj / yii2-cms-jodit

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

    

besnovatyj / yii2-cms-jodit example snippets


use Besnovatyj\Jodit\JoditWidget;

<?= $form->field($model, 'content')->widget(JoditWidget::class, [
    'height' => 500,
    'fmDefaultPath' => '/static',
    // 'enableFileManager' => false, // выключить кнопку файлового менеджера
    // 'config' => [ ... ],          // любые переопределения опций Jodit
]) 

<?= JoditWidget::widget([
    'name' => 'content',
    'value' => $html,
])