Commit 01262b7b authored by rencs's avatar rencs

10.14

parent cf196b7f
...@@ -40,7 +40,3 @@ export default { ...@@ -40,7 +40,3 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.edui-default {
z-index: 0;
}
</style>>
\ No newline at end of file
This diff is collapsed.
...@@ -21,17 +21,17 @@ ...@@ -21,17 +21,17 @@
*/ */
window.UEDITOR_HOME_URL = "/static/utf8-jsp/"; window.UEDITOR_HOME_URL = "/static/utf8-jsp/";
var getHost = function(url) { var getHost = function (url) {
var host = "null"; var host = "null";
if(typeof url == "undefined" if (typeof url == "undefined" ||
|| null == url) null == url)
url = window.location.href; url = window.location.href;
var regex = /.*\:\/\/([^\/]*).*/; var regex = /.*\:\/\/([^\/]*).*/;
var match = url.match(regex); var match = url.match(regex);
if(typeof match != "undefined" if (typeof match != "undefined" &&
&& null != match) null != match)
host = match[1]; host = match[1];
return host+"/"; return host + "/";
} }
var URL = window.UEDITOR_HOME_URL || getUEBasePath(); var URL = window.UEDITOR_HOME_URL || getUEBasePath();
...@@ -44,10 +44,13 @@ ...@@ -44,10 +44,13 @@
UEDITOR_HOME_URL: URL UEDITOR_HOME_URL: URL
// 服务器统一请求接口路径 // 服务器统一请求接口路径
, serverUrl:"api/universal/file/app/unauth/ueditor" ,
serverUrl: "api/universal/file/app/unauth/ueditor"
//工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的重新定义 //工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的重新定义
, toolbars: [[ ,
toolbars: [
[
'fullscreen', 'source', '|', 'undo', 'redo', '|', 'fullscreen', 'source', '|', 'undo', 'redo', '|',
'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
'rowspacingtop', 'rowspacingbottom', 'lineheight', '|', 'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
...@@ -59,7 +62,8 @@ ...@@ -59,7 +62,8 @@
'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|', 'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|',
'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|', 'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
'print', 'preview', 'searchreplace', 'drafts', 'help' 'print', 'preview', 'searchreplace', 'drafts', 'help'
]] ]
]
//当鼠标放在工具栏上时显示的tooltip提示,留空支持自动多语言配置,否则以配置值为准 //当鼠标放在工具栏上时显示的tooltip提示,留空支持自动多语言配置,否则以配置值为准
//,labelMap:{ //,labelMap:{
// 'anchor':'', 'undo':'' // 'anchor':'', 'undo':''
...@@ -75,7 +79,8 @@ ...@@ -75,7 +79,8 @@
//,theme:'default' //,theme:'default'
//,themePath:URL +"themes/" //,themePath:URL +"themes/"
//,zIndex : 900 //编辑器层级的基数,默认是900 ,
zIndex: 0 //编辑器层级的基数,默认是900
//针对getAllHtml方法,会在对应的head标签中增加该编码设置。 //针对getAllHtml方法,会在对应的head标签中增加该编码设置。
//,charset:"utf-8" //,charset:"utf-8"
...@@ -370,13 +375,17 @@ ...@@ -370,13 +375,17 @@
//,rgb2Hex:true //默认产出的数据中的color自动从rgb格式变成16进制格式 //,rgb2Hex:true //默认产出的数据中的color自动从rgb格式变成16进制格式
// xss 过滤是否开启,inserthtml等操作 // xss 过滤是否开启,inserthtml等操作
,xssFilterRules: true ,
xssFilterRules: true
//input xss过滤 //input xss过滤
,inputXssFilter: true ,
inputXssFilter: true
//output xss过滤 //output xss过滤
,outputXssFilter: true ,
outputXssFilter: true
// xss过滤白名单 名单来源: https://raw.githubusercontent.com/leizongmin/js-xss/master/lib/default.js // xss过滤白名单 名单来源: https://raw.githubusercontent.com/leizongmin/js-xss/master/lib/default.js
,whitList: { ,
whitList: {
a: ['target', 'href', 'title', 'class', 'style'], a: ['target', 'href', 'title', 'class', 'style'],
abbr: ['title', 'class', 'style'], abbr: ['title', 'class', 'style'],
address: ['class', 'style'], address: ['class', 'style'],
...@@ -423,7 +432,7 @@ ...@@ -423,7 +432,7 @@
p: ['class', 'style'], p: ['class', 'style'],
pre: ['class', 'style'], pre: ['class', 'style'],
s: [], s: [],
section:[], section: [],
small: [], small: [],
span: ['class', 'style'], span: ['class', 'style'],
sub: ['class', 'style'], sub: ['class', 'style'],
...@@ -456,7 +465,7 @@ ...@@ -456,7 +465,7 @@
var configPath = document.getElementsByTagName('script'); var configPath = document.getElementsByTagName('script');
return configPath[ configPath.length - 1 ].src; return configPath[configPath.length - 1].src;
} }
...@@ -483,7 +492,7 @@ ...@@ -483,7 +492,7 @@
function optimizationPath(path) { function optimizationPath(path) {
var protocol = /^[a-z]+:\/\//.exec(path)[ 0 ], var protocol = /^[a-z]+:\/\//.exec(path)[0],
tmp = null, tmp = null,
res = []; res = [];
...@@ -491,11 +500,11 @@ ...@@ -491,11 +500,11 @@
path = path.replace(/\\/g, '/').split(/\//); path = path.replace(/\\/g, '/').split(/\//);
path[ path.length - 1 ] = ""; path[path.length - 1] = "";
while (path.length) { while (path.length) {
if (( tmp = path.shift() ) === "..") { if ((tmp = path.shift()) === "..") {
res.pop(); res.pop();
} else if (tmp !== ".") { } else if (tmp !== ".") {
res.push(tmp); res.push(tmp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment