Minimalistic and customizable markdown editor for Yii2.
composer require s1lver/yii2-markdown-it
<?= MarkdownIt::widget([
'name' => 'test',
'buttons' => [
[
'label' => '',
'options' => ['class' => 'btn btn-outline-primary fa fa-bold',],
'buttonActions' => ['before' => '**', 'after' => '**'],
],
[
'label' => '',
'options' => ['class' => 'btn btn-outline-primary fa fa-arrows-h',],
'buttonActions' => ['before' => '<--', 'after' => '-->'],
]
]
]) ?>