From 523c35624a7bc86a2a1ec3cde6319302b1ab634a Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Sun, 5 Apr 2020 00:36:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86uEditor=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E8=A7=86=E9=A2=91BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vendor/ueditor/dialogs/video/video.html | 13 +++++++------ .../js/vendor/ueditor/dialogs/video/video.js | 19 +++++++++++-------- .../js/vendor/ueditor/ueditor.config.js | 8 ++++---- 3 files changed, 22 insertions(+), 18 deletions(-) diff --git a/src/main/resources/static/assets/js/vendor/ueditor/dialogs/video/video.html b/src/main/resources/static/assets/js/vendor/ueditor/dialogs/video/video.html index 5007882..8471640 100644 --- a/src/main/resources/static/assets/js/vendor/ueditor/dialogs/video/video.html +++ b/src/main/resources/static/assets/js/vendor/ueditor/dialogs/video/video.html @@ -2,10 +2,11 @@ "http://www.w3.org/TR/html4/loose.dtd"> + - - + +
@@ -74,13 +75,13 @@
- + - - + + - + \ No newline at end of file diff --git a/src/main/resources/static/assets/js/vendor/ueditor/dialogs/video/video.js b/src/main/resources/static/assets/js/vendor/ueditor/dialogs/video/video.js index b3cad15..e99eca1 100644 --- a/src/main/resources/static/assets/js/vendor/ueditor/dialogs/video/video.js +++ b/src/main/resources/static/assets/js/vendor/ueditor/dialogs/video/video.js @@ -220,7 +220,7 @@ var div = document.createElement( "div" ); div.setAttribute( "name", j ); if ( j == "none" ) div.className="focus"; - div.style.cssText = "background:url(images/" + j + "_focus.jpg);"; + div.style.cssText = "background:url(./assets/js/vendor/ueditor/dialogs/video/images/" + j + "_focus.jpg);"; div.setAttribute( "title", nameMaps[j] ); floatContainer.appendChild( div ); } @@ -272,13 +272,16 @@ conUrl = utils.unhtmlForUrl(conUrl); - $G("preview").innerHTML = '
'+lang.urlError+'
'+ - '' + - ''; + $G("preview").innerHTML = ''; + // $G("preview").innerHTML = '
'+lang.urlError+'
'+ + // '' + + // ''; } diff --git a/src/main/resources/static/assets/js/vendor/ueditor/ueditor.config.js b/src/main/resources/static/assets/js/vendor/ueditor/ueditor.config.js index 25e387f..dae3ab9 100644 --- a/src/main/resources/static/assets/js/vendor/ueditor/ueditor.config.js +++ b/src/main/resources/static/assets/js/vendor/ueditor/ueditor.config.js @@ -362,14 +362,14 @@ //output xss过滤 ,outputXssFilter: true // xss过滤白名单 名单来源: https://raw.githubusercontent.com/leizongmin/js-xss/master/lib/default.js - ,whitList: { + ,whiteList: { a: ['target', 'href', 'title', 'class', 'style'], abbr: ['title', 'class', 'style'], address: ['class', 'style'], area: ['shape', 'coords', 'href', 'alt'], article: [], aside: [], - audio: ['autoplay', 'controls', 'loop', 'preload', 'src', 'class', 'style'], + audio: ['autoplay', 'controls', 'loop', 'preload', 'src', '_src', '_url', 'class', 'style'], b: ['class', 'style'], bdi: ['dir'], bdo: ['dir'], @@ -400,7 +400,7 @@ header: [], hr: [], i: ['class', 'style'], - img: ['src', 'alt', 'title', 'width', 'height', 'id', '_src', 'loadingclass', 'class', 'data-latex'], + img: ['src', 'alt', 'title', 'width', 'height', 'id', '_src', '_url', 'loadingclass', 'class', 'data-latex'], ins: ['datetime'], li: ['class', 'style'], mark: [], @@ -425,7 +425,7 @@ tt: [], u: [], ul: ['class', 'style'], - video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width', 'class', 'style'] + video: ['autoplay', 'controls', 'loop', 'preload', 'src', '_src', '_url', 'height', 'width', 'class', 'style'] } };