yii2-simplemde-markdown
A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking., (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist iisns/yii2-simplemde-markdown "*"
or add, (*4)
"iisns/yii2-simplemde-markdown": "*"
to the require section of your composer.json
file., (*5)
Usage
Once the extension is installed, simply use it in your code by :, (*6)
View:, (*7)
= $form->field($model, 'content')->widget('iisns\markdown\Markdown', [
'mdeOptions' => [
//'autofocus' => true,
// see https://github.com/NextStepWebs/simplemde-markdown-editor
]
])->label(false) ?>
= Html::submitButton('Create', ['class' => 'btn btn-primary']) ?>
Please, check the simplemde-markdown-editor documentation for further information about its configuration options., (*8)
Demo
See https://simplemde.com/, (*9)