Use Ueditor to upload pictures and videos __ueditor

Source: Internet
Author: User

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)


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.