Recently, the company two projects have been used ueditor, from Baidu directly downloaded JSP version of the Ueditor can not directly meet the project requirements, so need to do some configuration. The following figure is an article management client that references the Ueditor under WebApp.
The files we need to configure are two, respectively, Ueditor.config.js and Config.json.
Below we look at what the configuration changed, first look at the ueditor.config.js, because to deploy to the Linux server, in order to ueditor display Normal, we change the URL to server tomcat under the client project under the Ueditor directory address. Toolbars By default There are many feature icons that we don't need so much, so we can get rid of the features we don't use, just the icons we need.
Let's take a look at what the Config.json file has done, as shown in the following figure, we can see that we have only modified the value of the Imageurlprefix line, by default is "", because "" The case of the picture path of the lower level directory, so in order to solve the problem, We can write the path prefix of the access picture to the absolute path, so that we can solve the problem of a less-level path. Of course, this is only the upload image of the access prefix configuration, the file below there are a lot of upload configuration, we have to change the prefix to the following figure red circled absolute path can be.
Finally, take a look at the Article_client directory on the server (only to help understand the steps above, without it)