| | |
| | | package com.matrix.system.common.actions; |
| | | |
| | | import com.matrix.component.ueditor.ActionEnter; |
| | | import com.matrix.component.ueditor.UeditorProperties; |
| | | import com.matrix.core.exception.GlobleException; |
| | | import com.matrix.core.tools.LogUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | |
| | | @RequestMapping(value = "admin/beditor") |
| | | public class UeditorController { |
| | | |
| | | |
| | | @Autowired |
| | | UeditorProperties ueditorProperties; |
| | | |
| | | /** |
| | | * 百度编辑器主入口方法 |
| | | * |
| | |
| | | response.setContentType("application/json"); |
| | | String rootPath = request.getSession().getServletContext().getRealPath("/"); |
| | | try { |
| | | String exec = new ActionEnter(request, rootPath).exec(); |
| | | String exec = new ActionEnter(request, rootPath,ueditorProperties).exec(); |
| | | PrintWriter writer = response.getWriter(); |
| | | writer.write(exec); |
| | | writer.flush(); |