EpicEditor - Yii2 widget
Mar 10, 2014, 6:51:40 PMEpicEditor is an embeddable JavaScript Markdown editor
Frankly, I was using EpicEditor for the last 4 months in my blog, but now I will switch to http://lab.lepture.com/editor/ as I find it more handy. And publish EpicEditor extension just not to loose it at all. Feel free to enhance and fork it!
Demo
you can see on http://epiceditor.com
Installation via Composer
add to require
section of your composer.json
"ijackua/yii2-epiceditor-widget": "dev-master"
and run composer update
Usage example with Yii2
Active widget
use ijackua\epiceditor\Epiceditor;
Epiceditor::widget([
'model' => $model,
'attribute' => 'text',
'options' => ['focusOnLoad' => true],
'divHtmlOptions' => ['class' => 'epiceditordiv']
])
Simple widget
use ijackua\epiceditor\Epiceditor;
Epiceditor::widget([
'name' => 'epiceditor',
'value' => '# Hello world',
'options' => ['focusOnLoad' => true],
'divHtmlOptions' => ['class' => 'epiceditordiv']
])
- EpicEditor options
- Marked options (markdown parser used by EpicEditor)