2017 © Pedro Peláez
 

yii2-extension yii2-markdown

实现markdown在线编辑器

image

echotrue/yii2-markdown

实现markdown在线编辑器

  • Thursday, November 3, 2016
  • by echotrue
  • Repository
  • 1 Watchers
  • 1 Stars
  • 16 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

An Online Editor Extension For Yii Framework Version 2

Thank you for choosing this extension , enjoy it!!!, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist echotrue/yii2-markdown "*"

or add, (*5)

"echotrue/yii2-markdown": "*"

to the require section of your composer.json file . and run this command:, (*6)

composer update

Usage

Add an actions() method in controller, (*7)

public function actions()
    {
        return [
            'upload'  => [
                'class' => 'echotrue\markdown\UploadAction',
            ],
        ];
    }

used in view :, (*8)

= $form->field($model, 'username')->widget(\echtrue\markdown\MarkDown::className(), [
        'options'    => ['id' => 'yii-markdown','width'=>'1000px'],
        'model'      => $model,
        'attribute' => 'username',
    ]) ?>

or, (*9)

<?= \echotrue\markdown\MarkDown::widget([
        'options' => [
            'id' => 'yii-markdown',
            //'height'=>"100px",
        ],
        'name'    => 'username',
    ]); ?>

upload path :, (*10)

create a new folder which named markdown_upload in webroot, (*11)

configuration

width: height:, (*12)

The Versions

03/11 2016

dev-master

9999999-dev

实现markdown在线编辑器

  Sources   Download

BSD-2-Clause

The Requires

 

by axlrose

extension yii2

03/11 2016

1.1.0

1.1.0.0

实现markdown在线编辑器

  Sources   Download

BSD-2-Clause

The Requires

 

by axlrose

extension yii2

29/09 2016

1.0.5

1.0.5.0

实现markdown在线编辑器

  Sources   Download

BSD-2-Clause

The Requires

 

by axlrose

extension yii2

29/09 2016

1.0.4

1.0.4.0

实现markdown在线编辑器

  Sources   Download

BSD-2-Clause

The Requires

 

by axlrose

extension yii2

29/09 2016

1.0.3

1.0.3.0

实现markdown在线编辑器

  Sources   Download

BSD-2-Clause

The Requires

 

by axlrose

extension yii2

29/09 2016

1.0.2

1.0.2.0

实现markdown在线编辑器

  Sources   Download

BSD-2-Clause

The Requires

 

by axlrose

extension yii2

14/07 2016

1.0.0

1.0.0.0

实现markdown在线编辑器

  Sources   Download

BSD-2-Clause

The Requires

 

by axlrose

extension yii2

14/07 2016

1.0.1

1.0.1.0

实现markdown在线编辑器

  Sources   Download

BSD-2-Clause

The Requires

 

by axlrose

extension yii2