富文本编辑框资源文件
This commit is contained in:
parent
7ad9952e16
commit
839f88e04f
BIN
src/main/resources/static/assets/js/vendor/ueditor/lang/zh-cn/images/localimage.old.png
vendored
Normal file
BIN
src/main/resources/static/assets/js/vendor/ueditor/lang/zh-cn/images/localimage.old.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 3.3 KiB |
@ -157,22 +157,12 @@ div.edui-box {
|
|||||||
|
|
||||||
.edui-default .edui-editor-toolbarboxouter {
|
.edui-default .edui-editor-toolbarboxouter {
|
||||||
border-bottom: 1px solid #d4d4d4;
|
border-bottom: 1px solid #d4d4d4;
|
||||||
background-color: #fafafa;
|
background-color: #FFFFFF;
|
||||||
background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
|
|
||||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2));
|
|
||||||
background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
|
|
||||||
background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);
|
|
||||||
background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
/*border: 1px solid #d4d4d4;*/
|
/*border: 1px solid #d4d4d4;*/
|
||||||
-webkit-border-radius: 4px 4px 0 0;
|
-webkit-border-radius: 4px 4px 0 0;
|
||||||
-moz-border-radius: 4px 4px 0 0;
|
-moz-border-radius: 4px 4px 0 0;
|
||||||
border-radius: 4px 4px 0 0;
|
border-radius: 4px 4px 0 0;
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
|
|
||||||
*zoom: 1;
|
*zoom: 1;
|
||||||
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
|
|
||||||
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
|
|
||||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.edui-default .edui-editor-toolbarboxinner {
|
.edui-default .edui-editor-toolbarboxinner {
|
||||||
|
1903
src/main/resources/static/assets/js/vendor/ueditor/themes/default/css/ueditor.css.bak
vendored
Normal file
1903
src/main/resources/static/assets/js/vendor/ueditor/themes/default/css/ueditor.css.bak
vendored
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
8
src/main/resources/static/assets/js/vendor/ueditor/themes/default/css/ueditor.min.css.bak
vendored
Normal file
8
src/main/resources/static/assets/js/vendor/ueditor/themes/default/css/ueditor.min.css.bak
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1,4 @@
|
|||||||
/*可以在这里添加你自己的css*/
|
/*可以在这里添加你自己的css*/
|
||||||
|
img {
|
||||||
|
max-width: 100%; /*图片自适应宽度*/
|
||||||
|
}
|
@ -33,19 +33,33 @@
|
|||||||
, serverUrl: URL.replace(/assets\/js\/vendor\/ueditor\//gi, 'api/file/ueditor')
|
, serverUrl: URL.replace(/assets\/js\/vendor\/ueditor\//gi, 'api/file/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', '|',
|
||||||
'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
|
// 'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
|
||||||
'directionalityltr', 'directionalityrtl', 'indent', '|',
|
// 'directionalityltr', 'directionalityrtl', 'indent', '|',
|
||||||
'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
|
// 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
|
||||||
'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
|
// 'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
|
||||||
'simpleupload', 'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'map', /*'gmap',*/ 'insertframe', /*'insertcode', 'webapp',*/ 'pagebreak', /*'template',*/ 'background', '|',
|
// 'simpleupload', 'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'map', /*'gmap',*/ 'insertframe', /*'insertcode', 'webapp',*/ 'pagebreak', /*'template',*/ 'background', '|',
|
||||||
'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'*/
|
||||||
]]
|
// ]]
|
||||||
|
, toolbars: [[
|
||||||
|
'fullscreen', 'source', '|',
|
||||||
|
'undo', 'redo', '|',
|
||||||
|
'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', '|',
|
||||||
|
'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|',
|
||||||
|
'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
|
||||||
|
'directionalityltr', 'directionalityrtl', 'indent', '|',
|
||||||
|
'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|',
|
||||||
|
'link', 'unlink', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
|
||||||
|
'simpleupload', 'insertimage', 'insertvideo', 'attachment', '|',
|
||||||
|
'horizontal', 'spechars', '|',
|
||||||
|
'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|',
|
||||||
|
'searchreplace',
|
||||||
|
]]
|
||||||
//当鼠标放在工具栏上时显示的tooltip提示,留空支持自动多语言配置,否则以配置值为准
|
//当鼠标放在工具栏上时显示的tooltip提示,留空支持自动多语言配置,否则以配置值为准
|
||||||
//,labelMap:{
|
//,labelMap:{
|
||||||
// 'anchor':'', 'undo':''
|
// 'anchor':'', 'undo':''
|
||||||
@ -58,8 +72,8 @@
|
|||||||
|
|
||||||
//主题配置项,默认是default。有需要的话也可以使用如下这样的方式来自动多主题切换,当然,前提条件是themes文件夹下存在对应的主题文件:
|
//主题配置项,默认是default。有需要的话也可以使用如下这样的方式来自动多主题切换,当然,前提条件是themes文件夹下存在对应的主题文件:
|
||||||
//现有如下皮肤:default
|
//现有如下皮肤:default
|
||||||
//,theme:'default'
|
// ,theme: 'style1'
|
||||||
//,themePath:URL +"themes/"
|
// ,themePath:URL +"themes/"
|
||||||
|
|
||||||
//,zIndex : 900 //编辑器层级的基数,默认是900
|
//,zIndex : 900 //编辑器层级的基数,默认是900
|
||||||
|
|
||||||
@ -109,36 +123,36 @@
|
|||||||
//,emotionLocalization:false //是否开启表情本地化,默认关闭。若要开启请确保emotion文件夹下包含官网提供的images表情文件夹
|
//,emotionLocalization:false //是否开启表情本地化,默认关闭。若要开启请确保emotion文件夹下包含官网提供的images表情文件夹
|
||||||
|
|
||||||
//粘贴只保留标签,去除标签所有属性
|
//粘贴只保留标签,去除标签所有属性
|
||||||
//,retainOnlyLabelPasted: false
|
,retainOnlyLabelPasted: true
|
||||||
|
|
||||||
//,pasteplain:false //是否默认为纯文本粘贴。false为不使用纯文本粘贴,true为使用纯文本粘贴
|
,pasteplain: false //是否默认为纯文本粘贴。false为不使用纯文本粘贴,true为使用纯文本粘贴
|
||||||
//纯文本粘贴模式下的过滤规则
|
//纯文本粘贴模式下的过滤规则
|
||||||
//'filterTxtRules' : function(){
|
,'filterTxtRules' : function(){
|
||||||
// function transP(node){
|
function transP(node){
|
||||||
// node.tagName = 'p';
|
node.tagName = 'p';
|
||||||
// node.setStyle();
|
node.setStyle();
|
||||||
// }
|
}
|
||||||
// return {
|
return {
|
||||||
// //直接删除及其字节点内容
|
//直接删除及其字节点内容
|
||||||
// '-' : 'script style object iframe embed input select',
|
'-' : 'script style object iframe embed input select',
|
||||||
// 'p': {$:{}},
|
'p': {$:{}},
|
||||||
// 'br':{$:{}},
|
'br':{$:{}},
|
||||||
// 'div':{'$':{}},
|
'div':{'$':{}},
|
||||||
// 'li':{'$':{}},
|
'li':{'$':{}},
|
||||||
// 'caption':transP,
|
'caption':transP,
|
||||||
// 'th':transP,
|
'th':transP,
|
||||||
// 'tr':transP,
|
'tr':transP,
|
||||||
// 'h1':transP,'h2':transP,'h3':transP,'h4':transP,'h5':transP,'h6':transP,
|
'h1':transP,'h2':transP,'h3':transP,'h4':transP,'h5':transP,'h6':transP,
|
||||||
// 'td':function(node){
|
'td':function(node){
|
||||||
// //没有内容的td直接删掉
|
//没有内容的td直接删掉
|
||||||
// var txt = !!node.innerText();
|
var txt = !!node.innerText();
|
||||||
// if(txt){
|
if(txt){
|
||||||
// node.parentNode.insertAfter(UE.uNode.createText(' '),node);
|
node.parentNode.insertAfter(UE.uNode.createText(' '),node);
|
||||||
// }
|
}
|
||||||
// node.parentNode.removeChild(node,node.innerText())
|
node.parentNode.removeChild(node,node.innerText())
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
//}()
|
}()
|
||||||
|
|
||||||
//,allHtmlEnabled:false //提交到后台的数据是否包含整个html字符串
|
//,allHtmlEnabled:false //提交到后台的数据是否包含整个html字符串
|
||||||
|
|
||||||
@ -430,69 +444,44 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
function getUEBasePath(docUrl, confUrl) {
|
function getUEBasePath(docUrl, confUrl) {
|
||||||
|
|
||||||
var basePath = getBasePath(docUrl || self.document.URL || self.location.href, confUrl || getConfigFilePath());
|
var basePath = getBasePath(docUrl || self.document.URL || self.location.href, confUrl || getConfigFilePath());
|
||||||
return basePath;
|
return basePath;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getConfigFilePath() {
|
function getConfigFilePath() {
|
||||||
|
|
||||||
var configPath = document.getElementsByTagName('script');
|
var configPath = document.getElementsByTagName('script');
|
||||||
configPath = configPath[ configPath.length - 1 ].src;
|
configPath = configPath[ configPath.length - 1 ].src;
|
||||||
return configPath;
|
return configPath;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBasePath(docUrl, confUrl) {
|
function getBasePath(docUrl, confUrl) {
|
||||||
|
|
||||||
var basePath = confUrl;
|
var basePath = confUrl;
|
||||||
|
|
||||||
|
|
||||||
if (/^(\/|\\\\)/.test(confUrl)) {
|
if (/^(\/|\\\\)/.test(confUrl)) {
|
||||||
|
|
||||||
basePath = /^.+?\w(\/|\\\\)/.exec(docUrl)[0] + confUrl.replace(/^(\/|\\\\)/, '');
|
basePath = /^.+?\w(\/|\\\\)/.exec(docUrl)[0] + confUrl.replace(/^(\/|\\\\)/, '');
|
||||||
|
|
||||||
} else if (!/^[a-z]+:/i.test(confUrl)) {
|
} else if (!/^[a-z]+:/i.test(confUrl)) {
|
||||||
|
|
||||||
docUrl = docUrl.split("#")[0].split("?")[0].replace(/[^\\\/]+$/, '');
|
docUrl = docUrl.split("#")[0].split("?")[0].replace(/[^\\\/]+$/, '');
|
||||||
|
|
||||||
basePath = docUrl + "" + confUrl;
|
basePath = docUrl + "" + confUrl;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return optimizationPath(basePath);
|
return optimizationPath(basePath);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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 = [];
|
||||||
|
|
||||||
path = path.replace(protocol, "").split("?")[0].split("#")[0];
|
path = path.replace(protocol, "").split("?")[0].split("#")[0];
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return protocol + res.join("/");
|
return protocol + res.join("/");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.UE = {
|
window.UE = {
|
||||||
getUEBasePath: getUEBasePath
|
getUEBasePath: getUEBasePath
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="layui-fluid layui-anim layui-anim-fadein">
|
<div class="layui-anim layui-anim-fadein">
|
||||||
<div class="layui-row">
|
<div class="layui-row">
|
||||||
<div class="layui-col-md12">
|
<div class="layui-col-md12">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
|
Loading…
Reference in New Issue
Block a user