. Net ueditor usage instructions

Source: Internet
Author: User

Reference on the page

CopyCode The Code is as follows: <SCRIPT src = "ueditor/editor_all.js" type = "text/JavaScript"> </SCRIPT>
<SCRIPT src = "ueditor/editor_config.js" type = "text/JavaScript"> </SCRIPT>
<Link href = "ueditor/themes/default/ueditor.css" rel = "stylesheet" type = "text/CSS"/>

Load controls on the pageCopy codeThe Code is as follows: <textarea id = "txteditor" name = "txteditor" runat = "server" Cols = "20" rows = "2">
<P> enter product introduction </P>
</Textarea>
<SCRIPT type = "text/JavaScript">
VaR editor = new Baidu. Editor. UI. Editor ();
Editor. Render ('txteditor ');

// 1.2.4 you can use the code instantiation editor later
UE. geteditor ('txteditor ')

</SCRIPT>
<Br/>
<Br/>
<Input id = "submit1" type = "Submit" value = "Submit"/>

Here, textarea can also be used as a DIV, but it's not necessary to use Div during background replication. This problem has caused me a long time,

Official Website

Copy code The Code is as follows: <SCRIPT type = "text/plain" id = "Editor">

// Retrieve from databaseArticlePrint content here
</SCRIPT>

Not in this place
Here I only use textarea
Request. Form ["txteditor"]
The background assigns the ueditor this.txt editor. innertext = "";

Note that you need to modify the fileup. ashx, imageup. ashx, and scrawlup. ashx file paths for uploading image files.
Assembly src = "~ /Ueditor/NET/uploader. cs"

Modify the editor_config.js File URL = Window. ueditor_home_url | "/ueditordemo/ueditor/"; your ueditor path ueditordemo is my website name

[1.2.4.0. Net] can be directly written as url = Window. ueditor_home_url | "/ueditor/"; // ueditor is your ueditor file name

Web. config

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.