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

  1. Links
  2. Demo
  3. Installation via Composer
  4. Usage example
  5. Editor options
  6. Marked options (markdown parser used by Lepture Editor)

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

Links

Demo

on http://lab.lepture.com/editor/

Installation via Composer

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

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

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

use ijackua\lepture\Markdowneditor;

Markdowneditor::widget(
			[
				'model' => $model,
				'attribute' => 'full_text',
				'markedOptions' => [
					'tables' => false
				]
			])
0 0
2 followers
0 downloads
Yii Version: Unknown
License: MIT
Category: User Interface
Developed by: iJackUA
Created on: Mar 31, 2014
Last updated: 4 years ago

Related Extensions