PHP code example of yiizh / yii2-imperavi-redactor

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

    

yiizh / yii2-imperavi-redactor example snippets


<?= yiizh\redactor\Redactor::widget(['name' => 'attributeName']) 

<?= yiizh\redactor\Redactor::widget(['name' => 'attributeName', 'clientOptions' => ['lang' => \Yii::$app->language]]) 

<?= $form->field($model,'attributeName')->widget(Redactor::className(),['clientOptions' =>  ['lang' => \Yii::$app->language]])