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