yii2-lepture-markdown-editor-widget

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

  • Owner: iJackUA/yii2-lepture-markdown-editor-widget
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Yii2 Lepture Markdown Editor widget

Latest Version on Packagist
Software License
Total Downloads

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

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

Credits

License

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

Main metrics

Overview
Name With OwneriJackUA/yii2-lepture-markdown-editor-widget
Primary LanguageJavaScript
Program languagePHP (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2014-03-29 17:59:40
Pushed At2015-10-14 19:37:06
Last Commit At2015-10-14 22:37:01
Release Count1
Last Release Name1.0.0 (Posted on )
First Release Name1.0.0 (Posted on )
用户参与
Stargazers Count48
Watchers Count3
Fork Count5
Commits Count7
Has Issues Enabled
Issues Count2
Issue Open Count1
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private