Giter VIP home page Giter VIP logo

kindeditor's Introduction

kindeditor与fileupload上传组件

  • 1: git clone https://github.com/laravel/laravel.git (安装laravel)
  • 2: composer require yxx/kindeditor (安装富文本编辑器拓展)
  • 3: 如果没有安装laravel-admin,参考一下网址操作 -laravel-admin
  • 4: 运行 php artisan vendor:publish --provider="Yxx\Kindeditor\EditorProvider"
  • 5: php artisan storage:link 建立软连接

项目中使用kindeditor编辑器

$form->kindeditor('content', '内容');

项目中使用fileupload单图片上传

$form->fileupload('img', '图像');

## 上传图片文件管理(删除目录和图片文件)

# 配置文件 config/editor.php
    'route' => [

        'prefix' => env('ADMIN_ROUTE_PREFIX', 'yxx'),

        'namespace' => 'Yxx\\Kindeditor\\Controllers',

        'middleware' => ['web'],
    ],

    'up_config' => [
        "image_size"    => 1024*1024*3,                                                 // 上传图片大小
        "file_size"     => 1024*1024*100,                                               // 上传文件大小
        "media_size"    => 1024*1024*100,                                               // 上传视音频大小
        "flash_size"    => 1024*1024*100,                                               // 上传flash大小
        "image_format"  => "jpg,gif,jpeg,png,bmp,svg",                                  // 上传图片格式
        "file_format"   => "doc,docx,xls,xlsx,ppt,htm,html,txt,rar,zip,mp4,pdf,pptx",   // 上传文件格式
        "media_format"  => "mp3,mp4,avi",                                               // 上传视音频格式
        "flash_format"  => "swf,fla",                                                   // 上传flash格式
        "upload_path"   => "uploads",                                                   // 上传文件目录
    ],

kindeditor's People

Contributors

youyingxiang avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.