ijackua/yii2-epiceditor-widget Yii2 widget for EpicEditor - An Embeddable JavaScript Markdown Editor

extensionwidgeteditormarkdownepiceditor

yii2-epiceditor-widget

Yii2 widget for EpicEditor - An Embeddable JavaScript Markdown Editor

Demo

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

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']
    ])

Available EpicEditor options

see on official EpicEditor site

Available Marked options (markdown parser used by EpicEditor)

see on official Marked site

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



MIT license
Stats
3 github stars & 2 github forks
0 downloads in the last day
0 downloads in the last 30 days
68 total downloads