在页面引用
//1.2.4以后可以使用一下代码实例化编辑器
UE.getEditor('txteditor')
</script>
<br />
<br />
<input id="Submit1" type="submit" value="submit" />
</div>
这里用textarea用DIV也行 但是在后台复制的时候不用能用DIV这个问题搞了我好久,
官网说的用
//从数据库中取出文章内容打印到此处
</script>
</div>
这个地方没搞
这里我只用的textarea
用POST提交 接收用Request.Form["txteditor"]
后台给UEditor赋值 this.txteditor.InnerText="";
注意你上传图片 文件视频 fileUp.ashx ,imageUp.ashx,scrawlUp.ashx 文件路径修改你自己的路径
Assembly Src="~/Ueditor/net/Uploader.cs"
修改 editor_config.js文件 URL = window.UEDITOR_HOME_URL || "/UeditorDemo/Ueditor/"; 你的UEditor路径 UeditorDemo是我的网站名称
[1.2.4.0 .Net 版本] 可以直接写成 URL = window.UEDITOR_HOME_URL || "/Ueditor/"; //Ueditor 是你的Ueditor文件名称
web.config
<pages validateRequest="false" />
<httpRuntime requestValidationMode="2.0" />