Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
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
西魏
cms_sys
Commits
0bb7660f
Commit
0bb7660f
authored
Aug 13, 2020
by
vip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频未显示和
parent
e38d1bbe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CmsParserUtil.java
src/main/java/net/mingsoft/cms/util/CmsParserUtil.java
+2
-2
ueditor.all.min.js
.../webapp/static/plugins/ueditor/1.4.3.1/ueditor.all.min.js
+1
-1
No files found.
src/main/java/net/mingsoft/cms/util/CmsParserUtil.java
View file @
0bb7660f
...
...
@@ -102,10 +102,10 @@ public class CmsParserUtil extends ParserUtil {
if
(
ParserUtil
.
IS_SINGLE
)
{
parserParams
.
put
(
ParserUtil
.
URL
,
BasicUtil
.
getUrl
());
}
int
totalPageSize
=
PageUtil
.
totalPage
(
articleIdTotal
,
page
.
getSize
());
page
.
setTotal
(
totalPageSize
);
parserParams
.
put
(
ParserUtil
.
PAGE
,
page
);
ParserUtil
.
read
(
File
.
separator
+
column
.
getCategoryListUrl
(),
parserParams
,
page
);
int
totalPageSize
=
PageUtil
.
totalPage
(
articleIdTotal
,
page
.
getSize
());
page
.
setTotal
(
totalPageSize
);
//文章列表页没有写文章列表标签,总数为0
if
(
totalPageSize
<=
0
)
{
// 数据库中第一页是从开始0*size
...
...
src/main/webapp/static/plugins/ueditor/1.4.3.1/ueditor.all.min.js
View file @
0bb7660f
...
...
@@ -354,7 +354,7 @@ this;clearTimeout(g);l||b.queryCommandState&&(!b.queryCommandState||1==b.queryCo
f
.
getComputedStyle
(
q
,
"left"
);
q
.
style
.
width
=
q
.
offsetWidth
+
"px"
;
q
.
style
.
zIndex
=
1
*
a
.
options
.
zIndex
+
1
;
q
.
parentNode
.
insertBefore
(
n
,
q
);
l
||
k
&&
r
.
ie
?(
"absolute"
!=
q
.
style
.
position
&&
(
q
.
style
.
position
=
"absolute"
),
q
.
style
.
top
=
(
document
.
body
.
scrollTop
||
document
.
documentElement
.
scrollTop
)
-
u
+
h
+
"px"
):(
r
.
ie7Compat
&&
z
&&
(
z
=!
1
,
q
.
style
.
left
=
f
.
getXY
(
q
).
x
-
document
.
documentElement
.
getBoundingClientRect
().
left
+
2
+
"px"
),
"fixed"
!=
q
.
style
.
position
&&
(
q
.
style
.
position
=
"fixed"
,
q
.
style
.
top
=
h
+
"px"
,(
"absolute"
==
e
||
"relative"
==
e
)
&&
parseFloat
(
g
)
&&
(
q
.
style
.
left
=
c
.
x
+
"px"
)))}
else
b
()}
var
a
=
this
,
e
=
a
.
getLang
();
a
.
setOpt
({
topOffset
:
0
});
var
h
=
a
.
options
.
topOffset
;
if
(
!
1
!==
a
.
options
.
autoFloatEnabled
){
var
g
=
UE
.
ui
.
uiUtils
,
l
=
r
.
ie
&&
6
>=
r
.
version
,
k
=
r
.
quirks
,
m
,
n
=
document
.
createElement
(
"div"
),
q
,
u
,
x
,
z
=!
0
,
v
=
p
.
defer
(
function
(){
c
()},
r
.
ie
?
200
:
100
,
!
0
);
a
.
addListener
(
"destroy"
,
function
(){
f
.
un
(
window
,[
"scroll"
,
"resize"
],
c
);
a
.
removeListener
(
"keydown"
,
v
)});
a
.
addListener
(
"ready"
,
function
(){
var
h
;
UE
.
ui
?
h
=
1
:(
alert
(
e
.
autofloatMsg
),
h
=
0
);
h
&&
a
.
ui
&&
(
x
=
g
.
getClientRect
,
q
=
a
.
ui
.
getDom
(
"toolbarbox"
),
u
=
x
(
q
).
top
,
m
=
q
.
style
.
cssText
,
n
.
style
.
height
=
q
.
offsetHeight
+
"px"
,
l
&&
d
(),
f
.
on
(
window
,[
"scroll"
,
"resize"
],
c
),
a
.
addListener
(
"keydown"
,
v
),
a
.
addListener
(
"beforefullscreenchange"
,
function
(
a
,
c
){
c
&&
b
()}),
a
.
addListener
(
"fullscreenchanged"
,
function
(
a
,
b
){
b
||
c
()}),
a
.
addListener
(
"sourcemodechanged"
,
function
(
a
,
b
){
setTimeout
(
function
(){
c
()},
0
)}),
a
.
addListener
(
"clearDoc"
,
function
(){
setTimeout
(
function
(){
c
()},
0
)}))})}};
UE
.
plugins
.
video
=
function
(){
function
d
(
a
,
b
,
d
,
g
,
f
,
k
,
m
){
var
n
;
switch
(
m
){
case
"image"
:
n
=
"<img "
+
(
g
?
'id="'
+
g
+
'"'
:
""
)
+
' width="'
+
b
+
'" height="'
+
d
+
'" _url="'
+
a
+
'" class="'
+
k
.
replace
(
/
\b
video-js
\b
/
,
""
)
+
'" src="'
+
c
.
options
.
UEDITOR_HOME_URL
+
'themes/default/images/spacer.gif" style="background:url('
+
c
.
options
.
UEDITOR_HOME_URL
+
"themes/default/images/videologo.gif) no-repeat center center; border:1px solid gray;"
+
(
f
?
"float:"
+
f
+
";"
:
""
)
+
'" />'
;
break
;
case
"embed"
:
n
=
'<embed
type="application/x-shockwave-flash" class="'
+
k
+
'" pluginspage="http://www.macromedia.com/go/getflashplayer"
src="'
+
p
.
html
(
a
)
+
'" width="'
+
'id="'
+
g
+
'"'
:
""
)
+
' width="'
+
b
+
'" height="'
+
d
+
'" _url="'
+
a
+
'" class="'
+
k
.
replace
(
/
\b
video-js
\b
/
,
""
)
+
'" src="'
+
c
.
options
.
UEDITOR_HOME_URL
+
'themes/default/images/spacer.gif" style="background:url('
+
c
.
options
.
UEDITOR_HOME_URL
+
"themes/default/images/videologo.gif) no-repeat center center; border:1px solid gray;"
+
(
f
?
"float:"
+
f
+
";"
:
""
)
+
'" />'
;
break
;
case
"embed"
:
n
=
'<embed src="'
+
p
.
html
(
a
)
+
'" width="'
+
b
+
'" height="'
+
d
+
'"'
+
(
f
?
' style="float:'
+
f
+
'"'
:
""
)
+
' wmode="transparent" play="true" loop="false" menu="false" allowscriptaccess="never" allowfullscreen="true" >'
;
break
;
case
"video"
:
m
=
a
.
substr
(
a
.
lastIndexOf
(
"."
)
+
1
),
"ogv"
==
m
&&
(
m
=
"ogg"
),
n
=
"<video"
+
(
g
?
' id="'
+
g
+
'"'
:
""
)
+
' class="'
+
k
+
' video-js" '
+
(
f
?
' style="float:'
+
f
+
'"'
:
""
)
+
' controls preload="none" width="'
+
b
+
'" height="'
+
d
+
'" src="'
+
a
+
'" data-setup="{}"><source src="'
+
a
+
'" type="video/'
+
m
+
'" /></video>'
}
return
n
}
function
b
(
a
,
b
){
p
.
each
(
a
.
getNodesByTagName
(
b
?
"img"
:
"embed video"
),
function
(
a
){
var
c
=
a
.
getAttr
(
"class"
);
if
(
c
&&-
1
!=
c
.
indexOf
(
"edui-faked-video"
)){
var
f
=
d
(
b
?
a
.
getAttr
(
"_url"
):
a
.
getAttr
(
"src"
),
a
.
getAttr
(
"width"
),
a
.
getAttr
(
"height"
),
null
,
a
.
getStyle
(
"float"
)
||
""
,
c
,
b
?
"embed"
:
"image"
);
a
.
parentNode
.
replaceChild
(
UE
.
uNode
.
createElement
(
f
),
a
)}
c
&&-
1
!=
c
.
indexOf
(
"edui-upload-video"
)
&&
(
f
=
d
(
b
?
a
.
getAttr
(
"_url"
):
a
.
getAttr
(
"src"
),
a
.
getAttr
(
"width"
),
a
.
getAttr
(
"height"
),
null
,
a
.
getStyle
(
"float"
)
||
""
,
c
,
b
?
"video"
:
"image"
),
a
.
parentNode
.
replaceChild
(
UE
.
uNode
.
createElement
(
f
),
a
))})}
var
c
=
this
;
c
.
addOutputRule
(
function
(
a
){
b
(
a
,
!
0
)});
c
.
addInputRule
(
function
(
a
){
b
(
a
)});
c
.
commands
.
insertvideo
=
{
execCommand
:
function
(
a
,
b
,
h
){
b
=
p
.
isArray
(
b
)?
b
:[
b
];
var
g
=
[],
l
;
a
=
0
;
for
(
var
k
,
m
=
b
.
length
;
a
<
m
;
a
++
)
k
=
b
[
a
],
l
=
"upload"
==
h
?
"edui-upload-video video-js vjs-default-skin"
:
"edui-faked-video"
,
g
.
push
(
d
(
k
.
url
,
k
.
width
||
420
,
k
.
height
||
280
,
"tmpVedio"
+
a
,
null
,
l
,
"image"
));
c
.
execCommand
(
"inserthtml"
,
g
.
join
(
""
),
!
0
);
h
=
this
.
selection
.
getRange
();
a
=
0
;
for
(
m
=
b
.
length
;
a
<
m
;
a
++
)
g
=
this
.
document
.
getElementById
(
"tmpVedio"
+
...
...
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