ijackua/yii2-epiceditor-widget

This package is abandoned and no longer maintained. No replacement package was suggested.

Yii2 widget for EpicEditor - An Embeddable JavaScript Markdown Editor

Installs: 68

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 2

Open Issues: 0

Language:JavaScript

Type:yii2-extension

dev-master 2014-04-03 20:43 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:32:19 UTC


README

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