二、
源码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Xeditor.aspx.cs" Inherits="Xeditor" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<script src="xheditor/jquery/jquery-1.4.4.min.js"></script>
<script src="xheditor/xheditor-1.2.1.min.js"></script>
<script src="xheditor/xheditor_lang/zh-cn.js"></script>
<script type="text/javascript">
$(pageInit);
function pageInit() {
$.extend(XHEDITOR.settings, { shortcuts: { 'ctrl+enter': submitForm } });
$('#elm4').xheditor({ upImgUrl: "xheditor/upload.aspx", upImgExt: "jpg,jpeg,gif,png" });
}
function submitForm() { $('#frmDemo').submit(); }
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<textarea id="elm4" name="elm4" rows="" cols="" style="width: 80%">
内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容
</textarea><br /><br />
</div>
</form>
</body>
</html>
asdf