PHP code example of efureev / yii2-bootstrap-markdown-editor

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

    

efureev / yii2-bootstrap-markdown-editor example snippets




use yii\widgets\ActiveForm;
use efureev\markdown\MarkdownEditor;


use efureev\markdown\MarkdownEditor;

echo MarkdownEditor::widget([
    'name'          => 'md-editor',
    'value'         => '# test message',
    'clientOptions' => ['language' => Yii::$app->language],
    'options'       => ['data-provider' => 'markdown'],
]);

php composer.phar