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'] } };