Package Data | |
---|---|
Maintainer Username: | HarrisWang |
Maintainer Contact: | i@harris.wang (Harris Wang) |
Package Create Date: | 2016-09-14 |
Package Last Update: | 2020-12-17 |
Language: | JavaScript |
License: | MIT |
Last Refreshed: | 2024-11-19 03:11:06 |
Package Statistics | |
---|---|
Total Downloads: | 2,368 |
Monthly Downloads: | 4 |
Daily Downloads: | 0 |
Total Stars: | 17 |
Total Watchers: | 2 |
Total Forks: | 5 |
Total Open Issues: | 0 |
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).