PHP code example of ezoterik / yii2-easymde

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

    

ezoterik / yii2-easymde example snippets



echo $form->field($model, 'content')->widget(\ezoterik\easymde\EasyMDE::class, [
    'editorOptions' => [
        'showIcons' => ["code", "table"],
    ],
]);


echo \ezoterik\easymde\EasyMDE::widget([
    'name' => 'markdown-editor',
    'editorOptions' => [
        'showIcons' => ["code", "table"],
    ],
]);

php composer.phar