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.
menthe/aliyun-ueditor is a Laravel package for 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..
It currently has 17 GitHub stars and 2.409 downloads on Packagist (latest version v0.4).
Install it with composer require menthe/aliyun-ueditor.
Discover more Laravel packages by menthe
or browse all Laravel packages to compare alternatives.
Last updated
UEditor 是由百度web前端研发部开发所见即所得富文本web编辑器
此包为laravel5的支持,新增多语言配置,可自由部署前端代码,默认基于 UEditor 1.4.3.1
UEditor 前台文件完全无修改,可自由gulp等工具部署到生产环境
根据系统的config.app.locale自动切换多语言. 暂时只支持 en,zh_CN,zh_TW
支持本地和阿里云存储,默认为本地上传 public/uploads
For Laravel5.1 LTS, please use v0.1.1. For Laravel5.3 or 5.4, please use v0.1.2.
composer require menthe/aliyun-ueditor -vvv
Harris\UEditor\UEditorServiceProvider::class,
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');
<!-- 加载编辑器的容器 -->
<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>
Laravel 5 UEditor is licensed under The MIT License (MIT).