From 99056945ea480b2ae1bbec27b2de2719ac29e43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Mon, 6 Mar 2017 11:23:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/plugs/ueditor/ueditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/static/plugs/ueditor/ueditor.js b/public/static/plugs/ueditor/ueditor.js index fcefb30a3..39b627a8d 100644 --- a/public/static/plugs/ueditor/ueditor.js +++ b/public/static/plugs/ueditor/ueditor.js @@ -7,7 +7,7 @@ define(['zeroclipboard'], function (ZeroClipboard) { cssRules: 'background-position: -380px 0px;', onclick: function () { var field = '_editor_upload_' + Math.floor(Math.random() * 100000); - var url = window.ROOT_URL + '/index.php/admin/plugs/upfile/one.html?uptype=qiniu&type=image&field=' + field; + var url = window.ROOT_URL + '/index.php/admin/plugs/upfile/one.html?uptype=qiniu&type=png,jpg,gif&field=' + field; $('').attr('name', field).appendTo(editor.container).on('change', function () { var srcs = this.value.split('|'), data = new Array(); for (var i in srcs) { @@ -37,7 +37,7 @@ define(['zeroclipboard'], function (ZeroClipboard) { cssRules: 'background-position: -726px -77px;', onclick: function () { var field = '_editor_upload_' + Math.floor(Math.random() * 100000); - var url = window.ROOT_URL + '/index.php/admin/plugs/upfile/two.html?uptype=qiniu&type=image&field=' + field; + var url = window.ROOT_URL + '/index.php/admin/plugs/upfile/two.html?uptype=qiniu&type=png,jpg,gif&field=' + field; $('').attr('name', field).appendTo(editor.container).on('change', function () { var srcs = this.value.split('|'); setTimeout(function () {