For .Net:
配置:
<asp:TextBox ID="txtnewsContent" runat="server" TextMode="MultiLine"></asp:TextBox>
<script src="../Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="../xheditor/xheditor-1.1.9-zh-cn.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('#txtnewsContent').xheditor({ skin: 'o2007blue', tools: 'mfull', urlType: 'rel',
upLinkUrl: "../xheditor/upload.aspx", upLinkExt: "zip,rar,txt",
upImgUrl: "../xheditor/upload.aspx", upImgExt: "jpg,jpeg,gif,png",
upFlashUrl: "../xheditor/upload.aspx", upFlashExt: "swf",
upMediaUrl: "../xheditor/upload.aspx", upMediaExt: "avi",
localUrlTest: /^https?:\/\/[^\/]*?(yxxx\.com)\//i, remoteImgSaveUrl: '../xheditor/saveremoteimg.aspx'
});
});
</script>
upload.aspx saveremoteimg.aspx 两个里面:
string attachdir = "../upload"; // 上传文件保存路径,结尾不要带/
完毕!