2017 © Pedro Peláez
 

yii2-extension yii2-wang-editor

Yii2 wangEditor widget

image

kriss/yii2-wang-editor

Yii2 wangEditor widget

  • Friday, March 30, 2018
  • by kriss
  • Repository
  • 1 Watchers
  • 2 Stars
  • 84 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 29 % Grown

The README.md

Yii2 wangEditor widget

Yii2 wangEditor widget, (*1)

v2.x 与 v1.x 版本之间存在差异,升级请注意, (*2)

wangEditor 官网, (*3)

安装

composer require kriss/yii2-wang-editor

使用

widget

<?php
use kriss\wangEditor\widgets\WangEditorWidget;

echo WangEditorWidget::widget([
    'name' => 'inputName',
    //'canFullScreen' => true, // 增加全屏的按钮
    //'customConfig' => [], // 扩展配置
]);
// or
echo $form->field($model, 'content')->widget(WangEditorWidget::class, [
    //'canFullScreen' => true,
]);

action

<?php

namespace admin\controllers;

use yii\web\Controller;
use kriss\wangEditor\actions\UploadAction;

class FileController extends Controller
{
    public function actions()
    {
        return [
            'wang-editor' => [
                'class' => UploadAction::class,
                'savePath' => '@webroot/uploads',
                'displayPath' => '@web/uploads',
            ],
        ];
    }
}

The Versions

30/03 2018

dev-master

9999999-dev

Yii2 wangEditor widget

  Sources   Download

MIT

The Requires

 

by Avatar kriss

extension yii2 editor wangeditor

30/03 2018

v1.2

1.2.0.0

Yii2 wangEditor widget

  Sources   Download

MIT

The Requires

 

by Avatar kriss

extension yii2 editor wangeditor

29/12 2017

v1.1

1.1.0.0

Yii2 wangEditor widget

  Sources   Download

MIT

The Requires

 

by Avatar kriss

extension yii2 editor wangeditor

31/08 2017

v1.0

1.0.0.0

Yii2 wangEditor widget

  Sources   Download

MIT

The Requires

 

by Avatar kriss

extension yii2 editor wangeditor