From d2213e56167dcd77c967e996df7c73e104f019d1 Mon Sep 17 00:00:00 2001
From: 935090232@qq.com <ak473600000>
Date: Mon, 21 Feb 2022 23:40:08 +0800
Subject: [PATCH] fead:百度编辑器配置文件改造

---
 zq-erp/src/main/java/com/matrix/system/common/actions/UeditorController.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/zq-erp/src/main/java/com/matrix/system/common/actions/UeditorController.java b/zq-erp/src/main/java/com/matrix/system/common/actions/UeditorController.java
index 673b071..aa2d6c7 100644
--- a/zq-erp/src/main/java/com/matrix/system/common/actions/UeditorController.java
+++ b/zq-erp/src/main/java/com/matrix/system/common/actions/UeditorController.java
@@ -4,8 +4,10 @@
 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;
 
@@ -24,6 +26,10 @@
 @RequestMapping(value = "admin/beditor")
 public class UeditorController {
 
+
+	@Autowired
+	UeditorProperties ueditorProperties;
+
 	/**
 	 * 百度编辑器主入口方法
 	 * 
@@ -38,7 +44,7 @@
 		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();

--
Gitblit v1.9.1