yii2-lepture-markdown-editor-widget

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

  • 所有者: iJackUA/yii2-lepture-markdown-editor-widget
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

主要指标

概览
名称与所有者iJackUA/yii2-lepture-markdown-editor-widget
主编程语言JavaScript
编程语言PHP (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2014-03-29 17:59:40
推送于2015-10-14 19:37:06
最后一次提交2015-10-14 22:37:01
发布数1
最新版本名称1.0.0 (发布于 )
第一版名称1.0.0 (发布于 )
用户参与
星数48
关注者数3
派生数5
提交数7
已启用问题?
问题数2
打开的问题数1
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?