asp.net integrated Baidu text editor (Ueditor) example

Source: Internet
Author: User

Installation steps:

1, download the software package, extract to the site root directory.

2, in the need to deploy the editor of the page header add the following code, the specific path can be set themselves.

The code is as follows Copy Code

<script type= "Text/javascript" charset= "Utf-8" >window. Ueditor_home_url = "/ueditor/";</script>
<script type= "Text/javascript" charset= "Utf-8" src= "/ueditor/ueditor.config.js" ></script>
<script type= "Text/javascript" charset= "Utf-8" src= "/ueditor/ueditor.all.js" ></script>

3, in the need to deploy the editor of the page Tail declaration editor

The code is as follows Copy Code

<script type= "Text/javascript" >ue.geteditor (' Content1 ', {});</script>

4, call the editor, the official given the way to call is

The code is as follows Copy Code

<script id= "Content1" Type=text/plain name= "Content1" >

But when I assign a value in the. NET background, the discovery cannot be assigned, and I do not know what to do, so I use another way to invoke the

The code is as follows Copy Code

<textarea id= "Content1" name= "Content1" runat= "Server" ></textarea>

Get!

In addition, the Ueditor.config.js file is personalized to the editor's configuration and can be modified according to your needs


Summary: 1.ueditor now version, the path really do not configure, Ueditor developers have done, more convenient than before; 2. NET version also pay attention to upload the problem, there is a file default compiled, to change to content (if you are publishing the site), right key to the file properties, you can find.

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.