vasar/simplemde-support-uploadimage 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

vasar/simplemde-support-uploadimage

Composer 安装命令:

composer require vasar/simplemde-support-uploadimage

包简介

laravel-admin extension of simplemde,support paste drop upload image

README 文档

README

支持粘贴,拖拽图片上传

Installing

$ composer require vasar/simplemde-support-uploadimage

$ php artisan vendor:publish
> select [Vasar\Simplemde\SimplemdeServiceProvider]

Usage

In the extensions section of the config/admin.php file

'extensions' => [

    'simplemde' => [

        // Set to false if you want to disable this extension
        'enable' => true,

        // If you want to set an alias for the calling method
        //'alias' => 'markdown',

        // Editor configuration
        'config' => [

        ]
    ]
]

The configuration of the editor can be found in Simplemde Documentation and configuration upload image.

'config' => [
    'autofocus'   => true,
    'spellChecker' => false,
    'upload' => 'upload url',
    'uploadFieldName' => 'xxx_filedName', // 上传字段 默认:image
    'jsonFieldName' => 'xxx_jsonFieldName', // json 返回字段 默认:image
    
    ....
]

use in form

$form->simplemde('content');

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固