PHP code example of h0rseduck / yii2-tui-editor

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

    

h0rseduck / yii2-tui-editor example snippets


<?= \h0rseduck\tuieditor\TuiEditor::widget([
    'editorOptions' => [
        'initialEditType' => 'markdown',
        'previewStyle' => 'vertical',
        'height' => '500px'
    ]
]); 

<?= $form->field($model, 'content')->widget(\h0rseduck\tuieditor\TuiEditor::class, [
    'editorOptions' => [
        'initialEditType' => 'markdown',
        'previewStyle' => 'vertical',
        'height' => '500px'
    ]
]); 

php composer.phar