首页 > 代码库 > 百度编辑器ueditor(版本:r1_4_3-asp.net)配置
百度编辑器ueditor(版本:r1_4_3-asp.net)配置
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="WebApplication2.Index" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<!--百度编辑器ueditor.config.js-->
<script src="http://www.mamicode.com/ueditor/ueditor.config.js" type="text/javascript"></script>
<!--百度编辑器ueditor.all.min.js-->
<script src="http://www.mamicode.com/ueditor/ueditor.all.min.js" type="text/javascript"></script>
<!--百度编辑器css样式-->
<link href="http://www.mamicode.com/ueditor/themes/default/css/ueditor.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<!--百度编辑器TextBox ID="myEditor"-->
<asp:TextBox ID="myEditor" runat="server" Width="100%" TextMode="MultiLine" Height="486px"></asp:TextBox>
<script type="text/javascript">
var editor = new baidu.editor.ui.Editor();
editor.render("myEditor");
</script>
</div>
</form>
</body>
</html>