Commit 01262b7b authored by rencs's avatar rencs

10.14

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