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
6e5bdba3
Commit
6e5bdba3
authored
Feb 13, 2020
by
wujj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
百度编辑器appId问题
parent
e99194d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ContentAction.java
src/main/java/net/mingsoft/cms/action/ContentAction.java
+1
-0
form.ftl
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
+2
-2
No files found.
src/main/java/net/mingsoft/cms/action/ContentAction.java
View file @
6e5bdba3
...
...
@@ -102,6 +102,7 @@ public class ContentAction extends BaseAction{
BaseEntity
contentEntity
=
contentBiz
.
getEntity
(
Integer
.
parseInt
(
content
.
getId
()));
model
.
addAttribute
(
"contentEntity"
,
contentEntity
);
}
model
.
addAttribute
(
"appId"
,
BasicUtil
.
getAppId
());
return
"/cms/content/form"
;
}
...
...
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
6e5bdba3
...
...
@@ -184,7 +184,7 @@
:limit=
"1"
:on-exceed=
"contentImghandleExceed"
:disabled=
"false"
:data=
"{uploadPath:'/
cms/content','isRename':true,'appId
':true}"
:data=
"{uploadPath:'/
${appId}/cms/content','isRename
':true}"
:on-success=
"contentImgSuccess"
accept=
"image/*"
list-type=
"picture-card"
>
...
...
@@ -267,7 +267,7 @@
maximumWords
:
2000
,
initialFrameWidth
:
'100%'
,
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/'
},
contentCategoryIdOptions
:
[],
...
...
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