menthe/aliyun-ueditor
Composer 安装命令:
composer require menthe/aliyun-ueditor
包简介
UEditor for laravel5 and Aliyun OSS.Store all images and files in Aliyun OSS. Support i18n. UEditor is a Rich Text Web Editor From Baidu.
README 文档
README
UEditor 是由百度web前端研发部开发所见即所得富文本web编辑器
此包为laravel5的支持,新增多语言配置,可自由部署前端代码,默认基于 UEditor 1.4.3.1
UEditor 前台文件完全无修改,可自由gulp等工具部署到生产环境
根据系统的config.app.locale自动切换多语言. 暂时只支持 en,zh_CN,zh_TW
支持本地和阿里云存储,默认为本地上传 public/uploads
Notice
For Laravel5.1 LTS, please use v0.1.1. For Laravel5.3 or 5.4, please use v0.1.2.
Requirement
- Lavavel5.1 LTS, for Lavavel5.3, I do not test, you may have a try.
- PHP5.6+, PHP7.0 is suitable
- Composer
Installation
- Run the command in your laravel project home.
composer require menthe/aliyun-ueditor -vvv
- Copy the provider line into your config/app.php
Harris\UEditor\UEditorServiceProvider::class,
- Then run the command.
php artisan vendor:publish
-
Change the config file -> config/UEditorUpload.php
-
Include the line in the blade template file, like template.blade.php, and you have the ueditor static file included.
@include('ueditor::head');
- Init the ueditor in Javascript.
<!-- 加载编辑器的容器 -->
<script id="container" name="content" type="text/plain">
这里写你的初始化内容
</script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
var ue = UE.getEditor('container');
ue.ready(function() {
ue.execCommand('serverparam', '_token', '{{ csrf_token() }}');//此处为支持laravel5 csrf ,根据实际情况修改,目的就是设置 _token 值.
});
</script>
ChangeLog
- v0.1 First Release, just use for myself.
- v0.1.1 正式发布,测试通过,完善文档。
- v0.1.2 匹配Laravel5.3和5.4
License
Laravel 5 UEditor is licensed under The MIT License (MIT).
menthe/aliyun-ueditor 适用场景与选型建议
menthe/aliyun-ueditor 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 2.41k 次下载、GitHub Stars 达 17, 最近一次更新时间为 2016 年 09 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「ueditor」 「aliyun」 「menthe」 「Harris」 「Harris Wang」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 menthe/aliyun-ueditor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 menthe/aliyun-ueditor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 menthe/aliyun-ueditor 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
阿里云短信扩展包
Alibaba Cloud Imagerecog SDK for PHP
UEditor 是一套开源的在线HTML编辑器,主要用于让用户在网站上获得所见即所得编辑效果,开发人员可以用 UEditor 把传统的多行文本输入框(textarea)替换为可视化的富文本输入框。
UEditor for laravel5. Support i18n. UEditor is a Rich Text Web Editor From Baidu.
UEditor extension for laravel-admin
UEditor for laravel5. Support i18n. Support Aliyun.
统计信息
- 总下载量: 2.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-14