承接 mirocow/yii2-redactor 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mirocow/yii2-redactor

Composer 安装命令:

composer require mirocow/yii2-redactor

包简介

Extension redactor for Yii2 Framework.

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version

Installation

The preferred way to install this extension is through composer.

Add github repository

    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/mirocow/yii2-redactor.git"
        }
    ]

and then

php composer.phar require --prefer-dist "mirocow/yii2-redactor" "*"

or add

"mirocow/yii2-redactor" : "*"

to the require section of your application's composer.json file.

Configurate

	'components' => [
        'redactor' => [
          'class' => 'yii\redactor\RedactorModule'
        ],
      ] 
        

Using

use yii\redactor\widgets\Redactor;

        <?= Redactor::widget(
          [
            'model' => $model,
            'attribute' => 'description',
            'options' => [
              'style' => 'width: 100%; height: 340px;',
            ],
            'clientOptions' => [
				        'imageManagerJson' => \yii\helpers\Html::url('/redactor/upload/imagejson'),
				        'imageUpload' => \yii\helpers\Html::url('/redactor/upload/image'),
				        'fileUpload' => \yii\helpers\Html::url('/redactor/upload/file'),
				        'lang' => 'en',
				        'plugins' => ['fontcolor', 'filemanager', 'imagemanager', 'table', 'undoredo'],
                		'placeholder' => 'Please add description',
            ],
          ]
        ); ?>	

统计信息

  • 总下载量: 107
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 86
  • 开发语言: JavaScript

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-05-17