EpicEditor - Yii2 widget > stdout.in Ievgen Kuzminov IT blog

EpicEditor - Yii2 widget

Mar 10, 2014, 6:51:40 PM

epic editor

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

Links

comments powered by Disqus
Ievgen
Kuzminov "iJackUA"
Web Team Lead
at MobiDev (Kharkiv, Ukraine)
Code in Ruby and Elixir, but still love PHP. Explore ES6 and Vue.js. Explore databases, use Ubuntu and MacOS, think about IT people and management

Notes


Linkify - jQuery plugin for finding URLs in plain-text and converting them to HTML links. It works with all valid URLs and email addresses



Remodal - flat, responsive, lightweight, fast, easy customizable modal window jquery plugin with declarative state notation and hash tracking



Giving a try to Ubuntu 14.04 - so far it's ok. More stable and refined. But it seem to have problems with Cinnamon 2 installation. Oh fine... will wait for Linux MInt 17 to use on my Work machine



Updated blog. Mostly "under-the-hood" changes according to latest Yii2 state, some CSS and server optimisations. In case of any issues please feel free to comment here