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

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

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

sahilr2050/yii2-redactor-s3

最新稳定版本:1.2.4

Composer 安装命令:

composer require sahilr2050/yii2-redactor-s3

包简介

Extension redactor for Yii2 Framework.

README 文档

README

yii2-redactor

This is a clone and modified version of Yii2-Redactor

Extension redactor for Yii2 Framework.

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist sahilr2050/yii2-redactor-s3 "*" 

or

 "sahilr2050/yii2-redactor-s3": "*" 

to the require section of your composer.json.

Configure

Add to config file (config/web.php or common\config\main.php)

 'modules' => [ 'redactor' => 'Sahilr2050\redactor\RedactorModule', ], 

or if you want to change the upload directory. to path/to/uploadfolder default value @webroot/uploads

 'modules' => [ 'redactor' => [ 'class' => 'Sahilr2050\redactor\RedactorModule', 'uploadDir' => '@webroot/path/to/uploadfolder', 'uploadUrl' => '@web/path/to/uploadfolder', 'imageAllowExtensions'=>['jpg','png','gif'] ], ], 

note: You need to create uploads folder and chmod and set security for folder upload reference: Protect Your Uploads Folder with .htaccess, How to Setup Secure Media Uploads

Config view/form

<?= $form->field($model, 'body')->widget(\Sahilr2050\redactor\widgets\Redactor::className()) ?> 

or not use ActiveField

<?= \Sahilr2050\redactor\widgets\Redactor::widget([ 'model' => $model, 'attribute' => 'body' ]) ?> 

or config advanced redactor reference Docs

<?= $form->field($model, 'body')->widget(\Sahilr2050\redactor\widgets\Redactor::className(), [ 'clientOptions' => [ 'imageManagerJson' => ['/redactor/upload/image-json'], 'imageUpload' => ['/redactor/upload/image'], 'fileUpload' => ['/redactor/upload/file'], 'lang' => 'zh_cn', 'plugins' => ['clips', 'fontcolor','imagemanager'] ] ])?> 

Bummer! i was tested on my project but not have many time to write document on file and usage. If you have problem please create a issue

Thanks!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固