Ueditor Backend configuration items do not load properly, upload plugin does not work properly!

Source: Internet
Author: User

I'm using the development version, 1.4.3.3. NET version

Online Search a lot, and later found only the configuration of the problem.

Under the root directory: Config.json

There is an IMG upload configuration: imageurlprefix This is your upload completed, in the text editor in the picture path prefix, is generally configured site domain name, for example: http://www.xxx.com, I set him to empty, and so on when the release of the domain name changed.

There is also a imagepathformat:/upload/image/{yyyy}{mm}{dd}/{time}{rand:6} This, is the real site above the storage path.

Just make sure/upload/image these folders exist.

There is an upload and other processing of various operations: CONTROLLER.ASHX, this is to configure the path, in Ueditor.config.js, there is a Serverurl:url + "Controller.ashx",

Originally those JS and controller are in the site root directory, I have moved to my new Uedit folder inside, so convenient.

Other file uploads, like videos or something, are all similar configurations.

Modified directory structure:

Use:

1. Quote JS:

<script src= "Uedit/ueditor.config.js" ></script>
<script src= "Uedit/ueditor.all.min.js" ></script>
<script src= "Uedit/lang/zh-cn/zh-cn.js" ></script>

2. Add to page: <textarea id= "editor" name= "editor" ></textarea>

3. Add Script:

<script type= "Text/javascript" >

Instantiation Editor
We recommend that you use the factory method Geteditor to create and reference the editor instance, and if you refer to the editor under a closure, call Ue.geteditor (' editor ') directly to get the relevant instance
var UE = ue.geteditor (' editor ');

</script>

4. Then put a button, write an onclick event to see, get the HTML code in the editor:

protected void Button1_Click (object sender, EventArgs e)
{
String des = request["editor"];//this editor is the name property of textarea, not the ID.
}

Ueditor Backend configuration items do not load properly, upload plugin does not work properly!

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.