drag-upload

拖放上传插件
KISSY.use('editor',function(S,Editor){
    S.use('editor/plugin/drag-upload',function(S,plugin){
        // use
    });
});

Configs

Editor.Plugin.dragUpload.config.fileInput
Editor.Plugin.dragUpload.config.sizeLimit
Editor.Plugin.dragUpload.config.serverParams
Editor.Plugin.dragUpload.config.serverUrl
Editor.Plugin.dragUpload.config.suffix

Events

Commands

Configs Details

Editor.Plugin.dragUpload.config.fileInput

{String} - 可选,默认 “Filedata”。上传文件域的名字.

Editor.Plugin.dragUpload.config.sizeLimit

{Number} - 可选,单位 kb,默认无限制。上传文件大小限制.

Editor.Plugin.dragUpload.config.serverParams

{Object} - 可选。附带传给 server 的参数 json 对象。

Editor.Plugin.dragUpload.config.serverUrl

{String} - 比选。上传服务器地址。

Editor.Plugin.dragUpload.config.suffix

{String} - 可选,默认 “png,jpg,jpeg,gif”。允许上传的文件后缀名列表,逗号分割.