定制 mrchency/ueditor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mrchency/ueditor

Composer 安装命令:

composer require mrchency/ueditor

包简介

UEditor for laravel8. Support i18n. UEditor is a Rich Text Web Editor From Baidu.

README 文档

README

UEditor 是由百度web前端研发部开发所见即所得富文本web编辑器

此包为laravel8的支持,新增多语言配置,可自由部署前端代码,默认基于 UEditor 1.4.3.3

UEditor 前台文件完全无修改,可自由gulp等工具部署到生产环境

根据系统的config.app.locale自动切换多语言. 暂时只支持 en,zh_CN,zh_TW

支持本地和七牛云存储,默认为本地上传 public/uploads

重要提示

有些同学配置总是不成功,除了一般设置,权限等基础问题,很大的可能是 middleware和 csrf 没配置好. 因为这两点对于服务器的安全至关重要,因此都是必须配置正确的,否则无法运行. 如何配置需要一定基础,对于看完且理解L5官方文档的同学,应该都有此基础.

安装

PHP 7.0+ , and Composer are required.

To get the latest version of Laravel Exceptions, simply add the following line to the require block of your composer.json file:

"mrchency/ueditor": "~1.0"

You'll then need to run composer install or composer update to download it and have the autoloader updated.

Once Laravel Exceptions is installed, you need to register the service provider. Open up config/app.php and add the following to the providers key.

  • 'Mrchen\UEditor\UEditorServiceProvider::class'

then run

  • php artisan vendor:publish --provider='Mrchen\UEditor\UEditorServiceProvider'

配置

For Laravel

若以上安装没问题,自定义项目配置文件会在 config/UEditorUpload.php (会自动生成)

    'core' => [
        'route' => [
            'middleware' => 'auth',
        ],
    ],

middleware 相当重要,请根据自己的项目设置,比如如果在后台使用,请设置为后台的auth middleware. 如果是单纯本机测试,请将 // 'middleware' => 'auth', 直接注释掉,如果留 'middleware'=>''空值,会产生bug,原因不详.

所有UEditor 的官方资源,会放在 public/static/laravel-ueditor/ ,可以根据自己的需求,更改.

使用

@include('UEditor::editor',['name'=>'编辑器name','content'=>'内容']);

if need,u can change the resources\views\vendor\UEditor\editor.blade.php

to fit your customization .

ok,all done.just use the UEditor.

License

Laravel 8 UEditor is licensed under The MIT License (MIT).

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固