Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
6e5bdba3
Commit
6e5bdba3
authored
Feb 13, 2020
by
wujj
Browse files
百度编辑器appId问题
parent
e99194d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/action/ContentAction.java
View file @
6e5bdba3
...
@@ -102,6 +102,7 @@ public class ContentAction extends BaseAction{
...
@@ -102,6 +102,7 @@ public class ContentAction extends BaseAction{
BaseEntity
contentEntity
=
contentBiz
.
getEntity
(
Integer
.
parseInt
(
content
.
getId
()));
BaseEntity
contentEntity
=
contentBiz
.
getEntity
(
Integer
.
parseInt
(
content
.
getId
()));
model
.
addAttribute
(
"contentEntity"
,
contentEntity
);
model
.
addAttribute
(
"contentEntity"
,
contentEntity
);
}
}
model
.
addAttribute
(
"appId"
,
BasicUtil
.
getAppId
());
return
"/cms/content/form"
;
return
"/cms/content/form"
;
}
}
...
...
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
6e5bdba3
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
:limit="1"
:limit="1"
:on-exceed="contentImghandleExceed"
:on-exceed="contentImghandleExceed"
:disabled="false"
:disabled="false"
:data="
{
uploadPath
:
'/
cms
/
content
'
,
'
isRename
'
:
true
,
'
appId
'
:
true
}
"
:data="
{
uploadPath
:
'/
$
{
appId
}
/
cms
/
content
'
,
'
isRename
'
:
true
}
"
:on-success="contentImgSuccess"
:on-success="contentImgSuccess"
accept="image/
*
"
accept="image/
*
"
list-type="picture-card">
list-type="picture-card">
...
@@ -267,7 +267,7 @@
...
@@ -267,7 +267,7 @@
maximumWords
:
2000
,
maximumWords
:
2000
,
initialFrameWidth
:
'
100
%'
,
initialFrameWidth
:
'
100
%'
,
initialFrameHeight
:
400
,
initialFrameHeight
:
400
,
serverUrl
:
ms
.base
+
"/static/plugins/ueditor/1.4.3.1/jsp/editor.do?jsonConfig=%7BvideoUrlPrefix:
\'
"
+
ms
.base
+
"
\'
,fileUrlPrefix:
\'
"
+
ms
.base
+
"
\'
,imageUrlPrefix:
\'
"
+
ms
.base
+
"
\'
,imagePathFormat:
\'
cms/content/editor/%7Btime%7D
\'
,filePathFormat:
\'
cms/content/editor/%7Btime%7D
\'
,videoPathFormat:
\'
cms/content/editor/%7Btime%7D
\'
,appId:true
%7D"
,
serverUrl
:
ms
.base
+
"/static/plugins/ueditor/1.4.3.1/jsp/editor.do?jsonConfig=%7BvideoUrlPrefix:
\'
"
+
ms
.base
+
"
\'
,fileUrlPrefix:
\'
"
+
ms
.base
+
"
\'
,imageUrlPrefix:
\'
"
+
ms
.base
+
"
\'
,imagePathFormat:
\'
/upload/${appId}/
cms/content/editor/%7Btime%7D
\'
,filePathFormat:
\'
/upload/${appId}/
cms/content/editor/%7Btime%7D
\'
,videoPathFormat:
\'
/upload/${appId}/
cms/content/editor/%7Btime%7D
\'
%7D"
,
UEDITOR
_
HOME
_
URL
:
ms
.base
+
'/
static
/
plugins
/
ueditor
/
1.4
.
3.1
/'
UEDITOR
_
HOME
_
URL
:
ms
.base
+
'/
static
/
plugins
/
ueditor
/
1.4
.
3.1
/'
},
},
contentCategoryIdOptions
:
[]
,
contentCategoryIdOptions
:
[]
,
...
...
Write
Preview
Supports
Markdown
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