Yii2 widget for EpicEditor - An Embeddable JavaScript Markdown Editor
JavaScript CSS PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
.gitignore
Epiceditor.php
EpiceditorAssets.php
LICENSE
README.md
composer.json

README.md

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