Skip to content

修改了wangEditor的源代码,在其中加入了视频上传功能

Notifications You must be signed in to change notification settings

chengpeng1995/richtext

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

richtext

修改了wangEditor的源代码,在其中加入了视频上传功能,传上来方便下次使用能找得到

配置

// 视频上传
wangEditor.customConfig.uploadVideoServer = '${contextPath}/siteInformationController/upload-wang-file'; 
wangEditor.customConfig.uploadVideoHooks = { // 上传完成处理方法
  customInsert: function (insertVideo, result) {
    if (result.errno === 0) {
      result.data.forEach(function (link) {
        link && insertVideo(link);
      });
    } else {
      //自定义上传失败提示
    }
  }
};

视频上传代码主要参考了: https://www.lagou.com/lgeduarticle/99623.html

About

修改了wangEditor的源代码,在其中加入了视频上传功能

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%