Skip to content

iJackUA/yii2-epiceditor-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Yii2 widget for EpicEditor - An Embeddable JavaScript Markdown Editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published