PHP code example of wonail / yii2-markdown

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

    

wonail / yii2-markdown example snippets


<?= $form->field($model, 'content')->widget(\wonail\markdown\MarkdownEditor::class, [
    'editorOptions' => [
        'showIcons' => ["code", "table"],
        'spellChecker' => false,
    ],
]); 

<?= \wonail\markdown\MarkdownEditor::widget([
    'name' => 'markdown-editor',
    'editorOptions' => [
        'showIcons' => ["code", "table"],
        'autofocus' => true,
        'spellChecker' => false,
    ],
]);

php composer.phar