2017 © Pedro Peláez
 

yii2-extension yii2-lepture-markdown-editor-widget

Yii2 widget for Lepture Markdown Editor (https://github.com/lepture/editor) - A markdown editor you really want

image

ijackua/yii2-lepture-markdown-editor-widget

Yii2 widget for Lepture Markdown Editor (https://github.com/lepture/editor) - A markdown editor you really want

  • Wednesday, October 14, 2015
  • by iJackUA
  • Repository
  • 3 Watchers
  • 41 Stars
  • 1,724 Installations
  • JavaScript
  • 2 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

Yii2 Lepture Markdown Editor widget

Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

Yii2 widget for Lepture Markdown Editor (https://github.com/lepture/editor) - A markdown editor you really want, (*2)

Demo

on http://lab.lepture.com/editor/, (*3)

Installation via Composer

add to require section of your composer.json "ijackua/yii2-lepture-markdown-editor-widget" and run composer update, (*4)

Usage example

Active widget

use ijackua\lepture\Markdowneditor;

Markdowneditor::widget(
            [
                'model' => $model,
                'attribute' => 'full_text',
            ])

Simple widget

use ijackua\lepture\Markdowneditor;

Markdowneditor::widget(
            [
                'name' => 'editor',
                'value' => '# Hello world'
            ])

Editor options

see on official site, (*5)

use ijackua\lepture\Markdowneditor;

Markdowneditor::widget(
            [
                'model' => $model,
                'attribute' => 'full_text',
                'leptureOptions' => [
                    'toolbar' => false
                ]
            ])

Marked options (markdown parser used by Lepture Editor)

see on official Marked site, (*6)

use ijackua\lepture\Markdowneditor;

Markdowneditor::widget(
            [
                'model' => $model,
                'attribute' => 'full_text',
                'markedOptions' => [
                    'tables' => false
                ]
            ])

Credits

License

The MIT License (MIT). Please see License File for more information., (*7)

The Versions

14/10 2015

dev-master

9999999-dev https://github.com/iJackUA/yii2-lepture-markdown-editor-widget

Yii2 widget for Lepture Markdown Editor (https://github.com/lepture/editor) - A markdown editor you really want

  Sources   Download

MIT

The Requires

 

extension yii widget editor markdown lepture

29/03 2014

1.0.0

1.0.0.0 https://github.com/iJackUA/yii2-lepture-markdown-editor-widget

Yii2 widget for Lepture Markdown Editor (https://github.com/lepture/editor) - A markdown editor you really want

  Sources   Download

MIT

The Requires

 

extension yii widget editor markdown lepture