Showing
2 changed files
with
11 additions
and
6 deletions
@@ -8,6 +8,7 @@ import com.yohobuy.platform.model.grass.request.TblCrawlerInfoQueryReq; | @@ -8,6 +8,7 @@ import com.yohobuy.platform.model.grass.request.TblCrawlerInfoQueryReq; | ||
8 | import com.yohobuy.platform.model.grass.request.TbleCrawlerAddToGrassReq; | 8 | import com.yohobuy.platform.model.grass.request.TbleCrawlerAddToGrassReq; |
9 | import org.slf4j.Logger; | 9 | import org.slf4j.Logger; |
10 | import org.slf4j.LoggerFactory; | 10 | import org.slf4j.LoggerFactory; |
11 | +import org.springframework.web.bind.annotation.RequestBody; | ||
11 | import org.springframework.web.bind.annotation.RequestMapping; | 12 | import org.springframework.web.bind.annotation.RequestMapping; |
12 | import org.springframework.web.bind.annotation.RequestParam; | 13 | import org.springframework.web.bind.annotation.RequestParam; |
13 | import org.springframework.web.bind.annotation.RestController; | 14 | import org.springframework.web.bind.annotation.RestController; |
@@ -24,7 +25,7 @@ public class TblCrawlerArticleController { | @@ -24,7 +25,7 @@ public class TblCrawlerArticleController { | ||
24 | ITblCrawlerInfoService tblCrawlerInfoService; | 25 | ITblCrawlerInfoService tblCrawlerInfoService; |
25 | 26 | ||
26 | @RequestMapping("/publishCrawlerArticle") | 27 | @RequestMapping("/publishCrawlerArticle") |
27 | - public ApiResponse publishCrawlerArticle(TbleCrawlerAddToGrassReq req){ | 28 | + public ApiResponse publishCrawlerArticle(@RequestBody TbleCrawlerAddToGrassReq req){ |
28 | logger.info("tblCrawlerArticle publishCrawlerArticle begin, req is {}", req); | 29 | logger.info("tblCrawlerArticle publishCrawlerArticle begin, req is {}", req); |
29 | try { | 30 | try { |
30 | //默认审核通过 | 31 | //默认审核通过 |
@@ -37,7 +38,7 @@ public class TblCrawlerArticleController { | @@ -37,7 +38,7 @@ public class TblCrawlerArticleController { | ||
37 | } | 38 | } |
38 | 39 | ||
39 | @RequestMapping("/tblTimerPublish") | 40 | @RequestMapping("/tblTimerPublish") |
40 | - public ApiResponse tblTimerPublish(TbleCrawlerAddToGrassReq req){ | 41 | + public ApiResponse tblTimerPublish(@RequestBody TbleCrawlerAddToGrassReq req){ |
41 | logger.info("tblCrawlerArticle timerPublish begin, req is {}",req); | 42 | logger.info("tblCrawlerArticle timerPublish begin, req is {}",req); |
42 | try { | 43 | try { |
43 | tblCrawlerInfoService.timerPublishToGrass(req); | 44 | tblCrawlerInfoService.timerPublishToGrass(req); |
@@ -48,7 +49,7 @@ public class TblCrawlerArticleController { | @@ -48,7 +49,7 @@ public class TblCrawlerArticleController { | ||
48 | } | 49 | } |
49 | 50 | ||
50 | @RequestMapping("/saveTblArticleDraft") | 51 | @RequestMapping("/saveTblArticleDraft") |
51 | - public ApiResponse saveTblArticleDraft(TbleCrawlerAddToGrassReq req){ | 52 | + public ApiResponse saveTblArticleDraft(@RequestBody TbleCrawlerAddToGrassReq req){ |
52 | logger.info("tblCrawlerArticle saveTblArticleDraft begin, req is {}", req); | 53 | logger.info("tblCrawlerArticle saveTblArticleDraft begin, req is {}", req); |
53 | try { | 54 | try { |
54 | req.setAuthStatus(9); | 55 | req.setAuthStatus(9); |
@@ -95,7 +95,7 @@ | @@ -95,7 +95,7 @@ | ||
95 | <td style="width:100% "> | 95 | <td style="width:100% "> |
96 | <label style="font-size: 14px;">正文内容</label> <br> | 96 | <label style="font-size: 14px;">正文内容</label> <br> |
97 | <div style="float: left;width:700px;" > | 97 | <div style="float: left;width:700px;" > |
98 | - <script id="content" name="content" type="text/plain" style="width:1024px;height:500px;"></script> | 98 | + <textarea id="content" name="content" type="text/plain" style="width:1024px;height:500px;"></textarea> |
99 | </div> | 99 | </div> |
100 | </td> | 100 | </td> |
101 | </tr> | 101 | </tr> |
@@ -175,8 +175,9 @@ | @@ -175,8 +175,9 @@ | ||
175 | initialFrameHeight: 200, | 175 | initialFrameHeight: 200, |
176 | initialFrameWidth : "90%", | 176 | initialFrameWidth : "90%", |
177 | initialFrameHeight : 350, | 177 | initialFrameHeight : 350, |
178 | + removeFormatTags:'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var,h1,h2,h3,h4,h5', | ||
178 | toolbars: [[ | 179 | toolbars: [[ |
179 | - 'source', '|', 'undo', 'redo', '|', | 180 | + 'source', '|', 'undo', 'redo', '|','formatmatch','removeformat', |
180 | 'bold', 'italic', 'underline','strikethrough','horizontal','|','paragraph', 'rowspacingtop', | 181 | 'bold', 'italic', 'underline','strikethrough','horizontal','|','paragraph', 'rowspacingtop', |
181 | 'rowspacingbottom', '|', | 182 | 'rowspacingbottom', '|', |
182 | 'insertorderedlist', 'insertunorderedlist', 'blockquote','|', | 183 | 'insertorderedlist', 'insertunorderedlist', 'blockquote','|', |
@@ -184,8 +185,11 @@ | @@ -184,8 +185,11 @@ | ||
184 | 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|', 'simpleupload', 'insertimage', 'help','fullscreen' | 185 | 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|', 'simpleupload', 'insertimage', 'help','fullscreen' |
185 | ]], | 186 | ]], |
186 | elementPathEnabled : false, | 187 | elementPathEnabled : false, |
188 | + catchRemoteImageEnable:false, | ||
189 | + enableAutoSave:false, | ||
190 | + enableContextMenu: false, | ||
191 | + retainOnlyLabelPasted:true, | ||
187 | maximumWords:100000, | 192 | maximumWords:100000, |
188 | - autoFloatEnabled:false | ||
189 | }); | 193 | }); |
190 | UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl; | 194 | UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl; |
191 | UE.Editor.prototype.getActionUrl = function(action) { | 195 | UE.Editor.prototype.getActionUrl = function(action) { |
-
Please register or login to post a comment