How to solve??????????????????
CodePudding user response:
I say with the simple process, the landlord to see where there is no do:1. Download development version at http://ueditor.baidu.com/website/download.html.net version utf-8 version, decompression and rename as Ueditor and Ueditor join the project
2. Open the ueditor. Config. Js file, the var URL=window. UEDITOR_HOME_URL | | getUEBasePath (); Add the window above. UEDITOR_HOME_URL="/Ueditor/";" "The path to content of Ueditor,
3. In the net folder open config. Json file, modify the access path prefix, in the window. And on the basis of UEDITOR_HOME_URL/net/.
4. Through the form form or directly to the controller, the text edit content took less than content and error says verify XXX is unsafe, and this is because the HTML text, we're going to use FormCollection get the value and the controller combined with [ValidateInput (false)].
If you have questions can continue in the following, if solved the hope that the building form the good habit of knot stick
CodePudding user response:
Is to use.net language and VS2012 development tools, Java language no problem...Is ueditor editor 1.4.0.net version, run separately, there is no any problem; Applied to the project, suggests that such a problem "backend configuration items not normal load, upload plug-ins can't normal use!"
CodePudding user response:
PS: picture upload path set, net ueditor \ \ config Settings in json "imageUrlPrefix" : "",/* image access path prefix */Don't fill in the relative path, if released to the iis commonly, can fill in the website domain such as http://www.baidu.com
CodePudding user response:
The config. The problem under the JSP json file is not loaded into, brutal way,Ueditor. Config. Js:
ServerUrl: "/article/mallArticle/config"
Java background
@ RequestMapping ("/config ")
@ ResponseBody
Public String config (it request, HttpServletResponse response) {
String s="{\ n" +
"" imageActionName \ ": " uploadimage \ ", \ n +
""" imageFieldName \ ": " the file \ ", \ n +
""" imageMaxSize \ ": 2048000, \ n" +
[\ "" imageAllowFiles \ ":". The PNG \ ", \ ". JPG \ ", \ ". Jpeg \ ", \ ". GIF \ ", \ ". BMP \] ", \ n "+
"" imageCompressEnable \ ": true, \ n" +
"" imageCompressBorder \ ": 1600, \ n" +
"" imageInsertAlign \ ": " none \ ", \ n +
"ImageUrlPrefix "" \ ", \ "", \ n +
""" imagePathFormat \ ": "/ueditor/JSP/upload/images/{yyyy} {mm} {dd}/{time} {rand: 6} \ "} ";
return s;
}
CodePudding user response:
I met this question many times, I talk about my situation, appear this mistake, is actually upload address errors, you can see the error in the browser developers console, separate open this address, or view the address of the response, you can know where is wrongBecause I was Newtonsoft. Json version does not match the
Because ueditor itself cited a Newtonsoft Json, I forget how much is this version, and my project also cited Newtonsoft. Json, two version is different, lead to an error
Perhaps you are the reason
CodePudding user response:
CodePudding user response: