Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform-ui
Commits
01262b7b
Commit
01262b7b
authored
Oct 14, 2020
by
rencs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10.14
parent
cf196b7f
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1714 additions
and
1531 deletions
+1714
-1531
Ueditor.vue
src/views/modal/Ueditor.vue
+0
-4
oneTourModal.vue
src/views/tourManage/modal/oneTourModal.vue
+168
-53
ueditor.css
static/utf8-jsp/themes/default/css/ueditor.css
+1076
-1013
ueditor.config.js
static/utf8-jsp/ueditor.config.js
+470
-461
No files found.
src/views/modal/Ueditor.vue
View file @
01262b7b
...
...
@@ -40,7 +40,3 @@ export default {
};
</
script
>
<
style
lang=
"scss"
scoped
>
.edui-default
{
z-index
:
0
;
}
</
style
>
>
\ No newline at end of file
src/views/tourManage/modal/oneTourModal.vue
View file @
01262b7b
This diff is collapsed.
Click to expand it.
static/utf8-jsp/themes/default/css/ueditor.css
View file @
01262b7b
This diff is collapsed.
Click to expand it.
static/utf8-jsp/ueditor.config.js
View file @
01262b7b
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment