Integrate ueditor tools and ueditor

Source: Internet
Author: User

Integrate ueditor tools and ueditor

Abstract: Copyright Disclaimer: This article is an original article of the blogger and cannot be reproduced without the consent of the blogger.

UEditor is an open-source online HTML editor of Baidu.

Step 1: Go to the official website to see the documentation, learn how to use this tool and download, I download is 1.4.3.3ASP, UTF-8 version

Step 2: add the extracted file to the project.

This section describes several important files: config. json is a configuration file, such as the file upload address, access address, upload size, file format, and so on. you can modify the file here, controller. ashx: This is the file for processing the front-end request. There is also a ueditor. config. js file. This is the complete configuration item. You can configure the features of the entire editor here.

If you need to upload images to a remote server, the UploadHandler. cs file overwrites Process (), mainly to return an image path to Result. Url after uploading images.

The last is the front-end. Reference js. Pay attention to the sequence.

The second step is to initialize the Ueditor window <div id = "Ueditor"> <script id = "container" name = "content" type = "text/plain"> write your initialization content here </script> </div>

<Script type = "text/javascript">

Var editor = UE. getEditor ('Container ',{
InitialFrameHeight: 500, // The height of the edit box.
InitialFrameWidth: null // The width of the edit box.
})

</Script>

 

 

Related Article

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.